Server IP : 162.241.126.129 / Your IP : 3.12.76.168 Web Server : Apache System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64 User : rvway5nu4 ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/rvway5nu4/www/page_content/ |
Upload File : |
<?php $fileName = end(explode('/',$_SERVER['PHP_SELF'])); if( $fileName == 'item_detail.php' ){ $fileName = 'used.php'; } $model_array = array(); $brand_array = array(); $type_array = array(); $querym = "select * from tbl_items where c_status = '1' ORDER BY i_itemID DESC"; $result=$db->query($querym); if ($result->num_rows) { $slno=$page+1; foreach($result->rows AS $key=>$val ) { foreach($val AS $key1=>$val1 ) { $$key1 = trim(stripslashes($val1)); if( $key1 == 'brand' ){ $brand_array[$brand] = $brand; }else if( $key1 == 'model' ){ $model_array[$model] = $model; }else if( $key1 == 'type' ){ $type_array[$type] = $type; } } } } ?> <input type="text" name="search" placeholder="ابحث هنا..."> <BR/><BR/>عام<BR/> <input type="text" name="year" placeholder="عام"> <BR/><BR/>نموذج<BR/> <input type="text" name="model" placeholder="نموذج"> <BR/><BR/>علامة تجارية<BR/> <input type="text" name="brand" placeholder="علامة تجارية"> <BR/><BR/>الطول<BR/> <input type="text" name="length" placeholder="الطول"> <BR/><BR/>عرض<BR/> <input type="text" name="width" placeholder="عرض"> <BR/><BR/>عدد المحاور<BR/> <input type="text" name="of_axles" placeholder="عدد المحاور"> <BR/><BR/> <input type="submit" value="اذهب" style="background-color:#4AAA52;color:#fff; width:40%;" ><a href="<?php echo site_url.''.$fileName; ?>" ><input type="button" value="إعادة تعيين" style="background-color:#4AAA52;color:#fff; width:40%; float:right;" ></a> <?php if( sizeof( $type_array ) > 0 ){ ?> <div class="blog-widget"> <h2>اكتب</h2> <ul> <?php foreach($type_array AS $Key=>$val) { ?> <li><a href="<?php echo site_url.''.$fileName.'?type='.$val; ?>"><?php echo $val; ?></a></li> <?php } ?> </ul> </div><!-- /.blog-widget --> <?php } ?> <?php if( sizeof( $model_array ) > 0 ){ ?> <div class="blog-widget"> <h2>نموذج</h2> <ul> <?php foreach($model_array AS $Key=>$val) { ?> <li><a href="<?php echo site_url.''.$fileName.'?model='.$val; ?>"><?php echo $val; ?></a></li> <?php } ?> </ul> </div><!-- /.blog-widget --> <?php } ?> <?php if( sizeof( $brand_array ) > 0 ){ ?> <div class="blog-widget"> <h2>علامة تجارية</h2> <div class="all-tags f1"> <?php foreach($brand_array AS $Key=>$val) { ?> <span><a href="<?php echo site_url.''.$fileName.'?brand='.$val; ?>"><?php echo $val; ?></a>,</span> <?php } ?> </div> </div><!-- /.blog-widget --> <?php } ?>