Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var city = $('#cp_id_626 i').text();
- <?php
- if ( strlen(get_post_meta( $post->ID, 'cp_id_298', true))>0 or strlen(get_post_meta( $post->ID, 'cp_street', true))>0 or strlen(get_post_meta( $post->ID, 'cp_id_185', true))>0 or strlen(get_post_meta( $post->ID, 'cp_id_371', true))>0 or strlen(get_post_meta( $post->ID, 'cp_id_446', true))>0 ):
- mysql_set_charset( 'utf8' );
- $sql_select = "SELECT * FROM users";
- $result = mysql_query($sql_select);
- $tmp = get_post_meta($post->ID, 'cp_id_626', true);
- $i = '';
- while($row = mysql_fetch_assoc($result))
- {
- if ( $tmp == $row['name'] )
- {
- if ( $row['facebook'] == 'Кредит на недвижимость' )
- {
- printf ("$('#mydiv11').html('" .$row['last_name']. " - ".$row['email']."');rn");
- if($row['img'] !="")
- echo ("$('#kredit').html('<img width="340" src="/db1/scripts/upload/" .$row['img']. "" alt="Свяжитесь с нами">');rn");
- }
- if ( $row['facebook'] == 'Срочный выкуп недвижимости')
- {
- printf ("$('#mydiv12').html('" .$row['last_name']. " - ".$row['email']."');");
- if($row['img'] !="")
- {
- echo ("$('#srchvik').html('<img width="340" src="/db1/scripts/upload/" .$row['img']. "" alt="Свяжитесь с нами">');rn");
- }
- }
- if ( $row['facebook'] == 'Страхование' )
- {
- printf ("$('#mydiv14').html('" .$row['last_name']. " - ".$row['email']."');");
- if($row['img'] !="")
- {
- echo ("$('#kredits').html('<img width="340" src="/db1/scripts/upload/" .$row['img']. "" alt="Свяжитесь с нами">');rn");
- }
- }
- if ( $row['facebook'] == 'Автокредит' )
- printf ("$('#mydiv10').html('" .$row['last_name']. " - ".$row['email']."');");
- if ( $row['facebook'] == 'Срочный выкуп авто' )
- printf ("$('#mydiv13').html('" .$row['last_name']. " - ".$row['email']."');");
- if ( $row['facebook'] == 'Специалист по недвижимости' )
- {
- if ( $i > 4 )
- continue;
- printf ("$('#mydiv{$i}').html('" .$row['last_name']. " - ".$row['email']."');rn");
- echo ("$('#par{$i}').css('display', 'block');rn");
- if($row['img'] !="")
- echo ("$('#mydivv{$i}').html('<img src="/db1/scripts/upload/" .$row['img']. "" width="120" height="78" alt="Свяжитесь с нами">');rn");
- if($row['textcomp'] !="")
- echo ("$('#mydivvv{$i}').html('<li>" . implode( '</li><li>', explode( "rn", $row['textcomp'] ) ) . "</li>');rn");
- $i++;
- }
- }
- }
- endif;
- ?>
- });
Add Comment
Please, Sign In to add comment