Server IP : 162.241.126.129 / Your IP : 3.149.214.28 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/ |
Upload File : |
<?php include("./config/data.config.php"); include("$LIB_DIR/functions.lib.php"); include("$LIB_DIR/db.php"); include("$LIB_DIR/db/mysqli.php"); include("$LIB_DIR/data.constant.php"); include("$LIB_DIR/sitemsgs.php"); include("$LIB_DIR/class.paging.php"); include("$LIB_DIR/functions.mailer.php"); $error=''; $msg=''; if( !isset( $_SESSION['SESS_id'] ) && ( $_SESSION['SESS_type'] == 'AD' ) ){ $_SESSION['msg'] = '<div class="alert alert-warning" >There is no login.</div>'; header('Location: '.SUB_DIR_PROJECT.'/index.php'); exit; } global $SITE_URL, $IMG_DIR; $db = new Db( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME, $DB_REPORT_ERROR, $DB_PERSISTENT_CONN); $sqlpara = ''; $rvtype = ''; if( isset($_REQUEST['para']) ){ $para = $_REQUEST['para']; $para_key = $rv_array[$para]; $sql_kwy = $rv_key_array[$para_key]; $sqlpara = " AND ".$sql_kwy ."='1'"; $rvtype = $rv_type_array[$para_key]; } // echo $sqlpara; exit; ?> <!DOCTYPE html> <html lang="en"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>RV Way</title> <!-- mobile responsive meta --> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link1.php'); ?> <?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link2.php'); ?> <?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link3.php'); ?> <?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link4.php'); ?> <link rel="stylesheet" href="<?php echo $ROOT_DIR.'/css/ar/five_star_font_awesome_min.css'; ?>" > <style> .checked { color: orange; } </style> </head> <body> <!-- <div class="preloader"></div> --> <div class="page-wrapper" > <!-- space for preloader --> <header class="site-header header-one" > <div class="top-header"> <?php require_once($ROOT_DIR.'/page_content/ar/common/header_top.php'); ?> </div><!-- /.top-header --> <nav class="navbar navbar-expand-lg navbar-light header-navigation stricky header-style-one" > <?php require_once($ROOT_DIR.'/page_content/ar/common/header_nav.php'); ?> </nav> </header><!-- /.site-header --> <?php // require_once($ROOT_DIR.'/page_content/minimal-bootstrap-carousel_h.php'); ?> <?php //require_once($ROOT_DIR.'/page_content/ar/home/minimal-bootstrap-carousel.php'); ?> <!--Start AAAAAAAAAAAAAAAAAAAAAAAAAAAAA --> <div style="margin:20px 0px 20px 0px;"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php if( isset($_REQUEST['para']) ){ $para = $_REQUEST['para']; $para_key = $rv_array[$para]; $i_rv_settingID = $_REQUEST['i_rv_settingID']; $sql = "SELECT * FROM tbl_rv_setting WHERE i_rv_settingID = '2' "; $result=$db->query($sql); if($result->num_rows) { foreach( $result->row AS $key=>$val){ $$key = stripslashes($val); } } if( $para == 0 ){ $title_str = $new_rv_title; $short_desc_str = $new_rv_short_description; $desc_str = $new_rv_description; $footer_desc_str = $new_rv_fotter_description; }else if( $para == 1 ){ $title_str = $used_rv_title; $short_desc_str = $used_rv_short_description; $desc_str = $used_rv_description; $footer_desc_str = $used_rv_fotter_description; }else if( $para == 2 ){ $title_str = $cus_rv_title; $short_desc_str = $cus_rv_short_description; $desc_str = $cus_rv_description; $footer_desc_str = $cus_rv_fotter_description; }else if( $para == 3 ){ $title_str = $rent_rv_title; $short_desc_str = $rent_rv_short_description; $desc_str = $rent_rv_description; $footer_desc_str = $rent_rv_fotter_description; }else if( $para == 4 ){ $title_str = $repair_rv_title; $short_desc_str = $repair_rv_short_description; $desc_str = $repair_rv_description; $footer_desc_str = $repair_rv_fotter_description; }else if( $para == 5 ){ $title_str = $sale_rv_title; $short_desc_str = $sale_rv_short_description; $desc_str = $sale_rv_description; $footer_desc_str = $sale_rv_fotter_description; }else if( $para == 6 ){ $title_str = $sparepart_rv_title; $short_desc_str = $sparepart_rv_short_description; $desc_str = $sparepart_rv_description; $footer_desc_str = $sparepart_rv_fotter_description; } } switch ($rvtype) { case "New RV": echo "<h3 style='direction: rtl !important;display: flex;'>كرفان جديد</h2>"; break; case "Used RV": echo "<h3 style='direction: rtl !important;display: flex;'> كرفان مستعمل</h2>"; break; case "Spare Part RV": echo "<h3 style='direction: rtl !important;display: flex;'>قطع غيار </h2>"; break; case "Rent RV": echo "<h3 style='direction: rtl !important;display: flex;'>تاجير كرفان </h2>"; break; case "Sale RV": echo "<h3 style='direction: rtl !important;display: flex;'> بيع كرفانك</h2>"; break; default: echo "<h3 style='direction: rtl !important;display: flex;'>".$rvtype." </h2>"; } ?> <h5 style='direction: rtl !important;text-align:right;' ><?php echo htmlentities($title_str); ?></h5> <br> <p style='direction: rtl !important;text-align:right;'><?php echo $short_desc_str; ?></p> </div> </div> </div> </div> <div class=""> <div class="container"> <div class="row"> <div class="col-lg-3 d-none d-sm-block"> <div class="blog-sidebar"> <form class="mb-30" method="get" action="<?php echo site_url.'used.php'; ?>" > <?php require_once($ROOT_DIR.'/page_content/ar_used_sidebar.php'); ?> </form> </div><!-- /.blog-sidebar --> </div><!-- /.col-lg-4 --> <div class="col-lg-9 col-sm-12 col-xs-12"> <div class="col-sm-12" style="margin-top:2px;" > <?php /* echo htmlentities($desc_str); */ ?> </div> <article class="product_loop"> <div class="row"> <?php $sort_by = $_REQUEST['sort_by']; if (!$sort_by) { $sort_by = "i_itemID"; } $sort_order = $_REQUEST['sort_order']; if (!$sort_order) { $sort_order = "DESC"; } GLOBAL $COLORS, $IMG_DIR, $TEMPLATE_DIR, $ARR_STATUS, $ARR_USERS_INDEX; global $SEARCH_RECORDS,$PREV_PAGE_LINK,$NEXT_PAGE_LINK,$TOTAL_RECORDSET,$PAGE_NAVS, $CURRENT_PAGE_NO, $TOTAL_PAGES, $ARR_GLOBAL_STATUS, $ARR_USERS; global $PROMPT, $ARR_GLOBAL_STATUS, $ARR_USERS, $ARR_STATUS, $HTTP_SESSION_VARS, $HTTP_POST_FILES, $HTTP_POST_VARS, $DOCUMENT_ROOT, $PIC_DIR, $BANNER_DIR, $TEMP_DIR, $MAP_VROOT_FILE_PATH, $ARR_INDENTITY_TYPE, $ARR_TITLE; $CURRENT_PAGE_NO=0; $TOTAL_PAGES=0; $TOTAL_RECORDSET=0; $MAX=12; $page = ( isset( $_REQUEST['page'] ) ) ? $_REQUEST['page'] : 0 ; if(!($page)) $page = 0 ; $lastrow=$MAX+$page; $SUB_SQL = ''; $next_links = ''; if( !empty($_REQUEST['search'] ) ){ $search = addslashes(trim($_REQUEST['search'])); $SUB_SQL .= " AND v_title LIKE '$search%' " ; $next_links .= "&search=$search"; } if( !empty($_REQUEST['year'] ) ){ $year = addslashes(trim($_REQUEST['year'])); $SUB_SQL .= " AND year LIKE '$year%' " ; $next_links .= "&year=$year"; } if( !empty($_REQUEST['model'] ) ){ $model = addslashes(trim($_REQUEST['model'])); $SUB_SQL .= " AND model LIKE '$model%' "; $next_links .= "&model=$model"; } if( !empty($_REQUEST['brand'] ) ){ $brand = addslashes(trim($_REQUEST['brand'])); $SUB_SQL .= " AND brand LIKE '$brand%' "; $next_links .= "&brand=$brand"; } if( !empty($_REQUEST['type'] ) ){ $type = addslashes(trim($_REQUEST['type'])); $SUB_SQL .= " AND brand LIKE '$type%' "; $next_links .= "&type=$type"; } if( !empty($_REQUEST['length'] ) ){ $length = addslashes(trim($_REQUEST['length'])); $SUB_SQL .= " AND length LIKE '$length%' " ; $next_links .= "&length=$length"; } if( !empty($_REQUEST['width'] ) ){ $width = addslashes(trim($_REQUEST['width'])); $SUB_SQL .= " AND width LIKE '$width%' " ; $next_links .= "&width=$width"; } if( !empty($_REQUEST['of_axles'] ) ){ $of_axles = addslashes(trim($_REQUEST['of_axles'])); $SUB_SQL .= " AND of_axles LIKE '$of_axles%' " ; $next_links .= "&of_axles=$of_axles"; } $SERCHSUBQUERY_Product = ''; $next_links .= "¶=$para&sort_by=$sort_by&sort_order=$sort_order"; if( $para == 5 ){ $sort_by = 'tbl_items.dt_addedDate'; $sort_order = 'DESC'; $query1 = "select count( * ) as total from tbl_items LEFT JOIN tbl_register ON ( tbl_items.i_added_by_customerId = tbl_register.i_customerID ) where tbl_items.c_status = '1' AND tbl_items.language_type = 'Yes' ".$SUB_SQL.$sqlpara; $query2 = "select tbl_items.*, tbl_register.phone from tbl_items LEFT JOIN tbl_register ON ( tbl_items.i_added_by_customerId = tbl_register.i_customerID ) where tbl_items.c_status = '1' AND tbl_items.language_type = 'Yes' ".$SUB_SQL.$sqlpara; }else{ $query1 = "select count( * ) as total from tbl_items where c_status = '1' AND language_type = 'Yes' ".$SUB_SQL.$sqlpara; $query2 = "select * from tbl_items where c_status = '1' AND language_type = 'Yes' ".$SUB_SQL.$sqlpara; } $query2.=" order by $sort_by $sort_order limit $page, $MAX "; //echo "<BR/>"; echo $query1; echo "<BR/>"; //echo "<BR/>"; echo $query2; echo "<BR/>"; // exit; $result=$db->query($query1); if($result->num_rows) { $TOTAL_RECORDSET= $result->row['total']; } if($TOTAL_RECORDSET > 0) { $result=$db->query($query2); if ($result->num_rows) { $slno=$page+1; foreach($result->rows AS $key=>$val ) { //echo '<pre>'; print_r($val); echo '</pre>'; exit; foreach($val AS $key1=>$val1 ) { $$key1 = stripslashes($val1); } $img_flag = 1; for( $i=1; $i < 11 ; $i++ ) { $img = 'v_image'.$i; $imgsrc = $$img; //echo $v_image1; exit; $target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc"; if ( $$img != '' && file_exists("$target")) { if( $img_flag == 1){ $img_flag = 2; $imgSRC = $SITE_URL.'/pic/'.$imgsrc; } } } $imgfirst = $v_image1; $target = "$DOCUMENT_ROOT$PIC_DIR/$imgfirst"; if ( $imgfirst != '' && file_exists("$target")) { if( $img_flag == 1){ $img_flag = 2; $imgSRCfirst = $SITE_URL.'/pic/'.$imgfirst; } } $v_image1Pre = $SITE_URL.'/pic/'.$v_image1; $target = "$DOCUMENT_ROOT$PIC_DIR/$v_image1"; if ( $v_image1 != '' && file_exists("$target")) { $v_image1Pre = $SITE_URL.'/pic/'.$v_image1; } $img_src = ( isset($v_image1Pre )) ? $v_image1Pre : site_url.'/img/partners/aaa.jpg'; $new_arrival = ( $new_arrival_select == 1 ) ? '<span class="tag tag-pill tag-new">قادم جديد</span>' : ''; $Reduced = ( $reduced_select == 1 ) ? '<span class="tag tag-pill tag-reduced">انخفاض</span>' : ''; $In_Stock = ( $in_stock_select == 1 ) ? '<span class="tag tag-pill tag-instock">في المخزن</span>' : ''; ?> <div class="col-md-6 col-lg-4 col-xl-4"> <div class="card"> <a href="<?php echo site_url.'ar_item_detail.php?i_itemID='.$i_itemID; ?>¶=<?php echo $para; ?>" class="item-title"> <img style="width:250px;height:250px;" class="img-fluid img-rounded lazyloaded" alt="<?php echo $v_title; ?>" title="<?php echo $v_title; ?>" src="<?php echo $img_src; ?>" > <div class="item-name"><?php echo $v_title; ?></div> <?php if($code_type!="") { ?> <div class="">رقم القطعة:#<?php echo $code_type; ?></div> <?php } ?> </a> <div class="row"> <div class="col-md-6 col-lg-6 col-xl-6" style="padding:0px; margin:0px;"> <div class="itemprice"> <?php //var_dump($normal_price); //var_dump($sale_price); if ( $para == 5 ){ if( $curreny_type != '' && $sale_price != '' ){ echo '<strike style="color: gray;"><span style="font-size:12px;" >'.$curreny_type.'</span><span>'.$normal_price.'</strike></span> <span style="font-size:13px;" >'.$curreny_type.'</span><span><span style="font-size:14px;" >'.$sale_price.'</span>'; }else if($curreny_type != '' && $normal_price != '') { echo '<strike style="color: gray;"><span style="font-size:12px;" >'.$curreny_type.'</span><span>'.$normal_price.'</strike></span> <span style="font-size:13px;" >'.$curreny_type.'</span><span><span style="font-size:14px;" >'.$sale_price.'</span>'; } }else if( $para == 3 ){ echo '<span style="font-size:13px;" >'.$curreny_type.'</span> <span style="font-size:14px;" >'.$rent_price_per_day.' / Day</span>'; }else { if( $curreny_type != '' && $normal_price != '' ){ if($sale_price!='') { echo '<strike style="color: gray;"><span style="font-size:12px;" >'.$curreny_type.'</span><span>'.$normal_price.'</strike></span> <span style="font-size:13px;" >'.$curreny_type.'</span><span><span style="font-size:14px;" >'.$sale_price.'</span>'; } else { echo '<span style="font-size:13px;" >'.$curreny_type.'</span><span><span style="font-size:14px;" >'.$normal_price.'</span>'; } } elseif( $curreny_type != '' && $normal_price == '' ){ if($sale_price!='') { echo '<span style="font-size:13px;" >'.$curreny_type.'</span><span><span style="font-size:14px;" >'.$sale_price.'</span>'; } } } ?> </div> </div> <div class="col-md-6 col-lg-6 col-xl-6" style="padding:0px; margin:0px;"> <!-- <span class="fa fa-star checked"></span> <span class="fa fa-star checked"></span> <span class="fa fa-star checked"></span> <span class="fa fa-star checked"></span> <span class="fa fa-star"></span> --> <?php $average_rating_score = ceil( $average_rating_score); $blakStart = ( 5- $average_rating_score); for($i =0 ; $i < $average_rating_score; $i++ ){ ?> <span class="fa fa-star checked"></span> <?php } ?> <?php for($i =0 ; $i < $blakStart; $i++ ){ ?> <span class="fa fa-star"></span> <?php } ?> </div> </div> <?php if( $para != 6 ){ ?> <div class="info-bar"> <ul> <li>ينام: <?php echo $sleeps; ?></li> <li>عرض: <?php echo $width; ?></li> <li>الطول: <?php echo $length; ?></li> </ul> </div> <?php } ?> <div class="card-block"> <div class="item-price"> </div><!-- /.item-price --> <div class="item-attributes px-0"> <?php echo $new_arrival; ?> <?php echo $Reduced; ?> <?php if($stock >= 1) { echo '<span class="tag tag-pill tag-instock">في المخزن</span>'; } else { echo '<span class="tag tag-pill tag-reduced">غير متوفر</span>'; } ?> </div> <div class="item-stock-number"> <span class="stock-word">مخزون #:</span> <span class="stock-number"><?php echo $stock; ?></span> </div> </div><!-- /.card-block --> <?php if( $phone != '' && $phone != '0') { ?> <div class="col-md-12 col-lg-12 col-xl-12 d-flex justify-content-center" style=""> <a href="tel:<?php echo $phone; ?>" class=""><span class="tag tag-pill tag-new"><i class="carevan-icon-phone-call"></i> <?php echo $phone; ?></span></a> </div> <?php } ?> <div class="row" style="padding:0px; margin:0px; "> <?php if( $para == 5 ) { ?> <div class="col-lg-2"> </div> <div class="col-lg-8 col-sm-12 text-center" style="float:center;" > <a href="<?php echo site_url.'ar_item_detail.php?i_itemID='.$i_itemID; ?>¶=5" class="btn btn-primary btn-block">عرض التفاصيل</a> </div> <div class="col-lg-2"> </div> <div class="col-md-12 col-lg-12 col-xl-12 " style="padding:0px; ; "> </div> <?php }elseif( $para == 3 ) { ?> <div class="col-md-6 col-lg-6 col-ms-12" style="padding:0px; margin:2px 0px 0px 0px; "> <a href="<?php echo site_url.'ar_item_detail.php?i_itemID='.$i_itemID; ?>¶=3" class="btn btn-primary btn-block">عرض التفاصيل</a> </div> <div class="col-md-6 col-lg-6 col-sm-12" style="padding:0px; float:right; text-align:right; margin:2px 0px 0px 0px"> <a href="<?php echo site_url.'ar_item_detail.php?i_itemID='.$i_itemID; ?>¶=3" class="btn btn-primary" style="width:100%;" >أحجز كرفانك</a> </div> <div class="col-md-12 col-lg-12 col-xl-12 " style="padding:0px; ; "> </div> <?php }else if( $para == 6 ) { ?> <div class="col-md-6 col-lg-6 col-ms-12" style="padding:0px; margin:2px 0px 0px 0px; "> <a href="<?php echo site_url.'ar_item_detail.php?i_itemID='.$i_itemID; ?>¶=6" class="btn btn-primary btn-block">عرض التفاصيل</a> </div> <?php if($stock >= 1) { ?> <div class="col-md-6 col-lg-6 col-sm-12" style="padding:0px; float:right; text-align:right; "> <a href="<?php echo site_url.'ar_item_buy.php?i_itemID='.$i_itemID; ?>&action=add¶=<?php echo $para_key; ?>" class="btn btn-primary" style="width:100%;margin:2px 0px 0px 0px;" >اشتري الآن</a> </div> <?php } else { ?> <div class="col-md-6 col-lg-6 col-sm-12" style="padding:0px; float:right; text-align:right; "> <a href="javascript:void(0);" class="btn btn-secondary" style="width:100%;margin:2px 0px 0px 0px; cursor:not-allowed;" >اشتري الآن</a> </div> <?php } ?> <div class="col-md-12 col-lg-12 col-xl-12 " style="padding:0px; ; "> </div> <?php } else { ?> <div class="col-md-6 col-lg-6 col-ms-12" style="padding:0px; margin:2px 0px 0px 0px; "> <a href="<?php echo site_url.'ar_item_detail.php?i_itemID='.$i_itemID; ?>" class="btn btn-primary btn-block">عرض التفاصيل</a> </div> <?php if($stock >= 1) { ?> <div class="col-md-6 col-lg-6 col-sm-12" style="padding:0px; float:right; text-align:right; "> <a href="<?php echo site_url.'ar_item_buy.php?i_itemID='.$i_itemID; ?>&action=add¶=<?php echo $para_key; ?>" class="btn btn-primary" style="width:100%;margin:2px 0px 0px 0px;" >اشتري الآن</a> </div> <?php } else { ?> <div class="col-md-6 col-lg-6 col-sm-12" style="padding:0px; float:right; text-align:right; "> <a href="javascript:void(0);" class="btn btn-secondary" style="width:100%;margin:2px 0px 0px 0px; cursor:not-allowed;" >اشتري الآن</a> </div> <?php } ?> <div class="col-md-12 col-lg-12 col-xl-12 " style="padding:0px; ; "> </div> <?php } ?> </div> </div><!-- /.card --> </div> <?php } } } else { $SEARCH_RECORDS.="<div class='col-sm-12'> No Item </div>"; } if($page > 0) { $prevpage=$page - $MAX; //$PREV_PAGE_LINK="| <a href='item.php?page=$prevpage&$next_links' class=menulink>Prev Page</a> |"; $PREV_PAGE_LINK = '<li data-lp="1" class="first disabled"><a href="ar_item.php?page='.$prevpage.'&'.$next_links.'">←</a></li>'; } if($TOTAL_RECORDSET > $lastrow) { //$NEXT_PAGE_LINK="| <a href='item.php?page=$lastrow&$next_links' class=menulink>Next Page</a> |"; $NEXT_PAGE_LINK ='<li data-lp="3" class="last"><a href="ar_item.php?page='.$lastrow.'&'.$next_links.'">→</a></li>'; } $PAGE_NAVS=""; for($i=0,$toPrint=1;$i< $TOTAL_RECORDSET;$i+=$MAX,$toPrint++) { if ($lastrow-$i==$MAX) { //$PAGE_NAVS.=" <B>".$toPrint."</b> | "; $PAGE_NAVS.='<li data-lp="'.$i.'" class="active"><a href="javascript:void(0);">'.(($i+12)/12).'</a></li>'; $CURRENT_PAGE_NO = $toPrint; } else { //$PAGE_NAVS.=" <a href='item.php?page=$i&$next_links' class=menulink>$toPrint</a> |"; $PAGE_NAVS .= '<li data-lp="1" class=""><a href="ar_item.php?page='.$i.'&'.$next_links.'">'.(($i+12)/12).'</a></li>'; } $TOTAL_PAGES=$toPrint; } ?> </div> </article> <div class="col-sm-12" style="margin-top:20px;" > <div class="row d-flex justify-content-center"> <ul class="pagination"> <?php echo $PREV_PAGE_LINK; ?> <?php echo $PAGE_NAVS; ?> <?php echo $NEXT_PAGE_LINK; ?> </ul> </div> </div> <div class="col-sm-12" style="margin-top:2px;" > <?php /* echo $footer_desc_str; */ ?> </div> </div><!-- /.col-lg-8 --> </div><!-- /.row --> </div><!-- /.container --> </div><!-- /.blog blog-single --> <!--End AAAAAAAAAAAAAAAAAAAAAAAAAAAAA --> </div><!-- /.page-wrapper --> <footer class="crop"> <?php require_once($ROOT_DIR.'/page_content/ar/common/footer_middle.php'); ?> <?php require_once($ROOT_DIR.'/page_content/ar/common/footer_bottom.php'); ?> </footer> <a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a> <!-- /.scroll-to-top --> <?php require_once($ROOT_DIR.'/page_content/ar/common/footer_js.php'); ?> <script > $('#partner_tab_2').hide(); $(".tabparner").on("click", function(){ var tabparner_id = $(this).attr('id'); //alert("The paragraph was clicked." + tabparner_id); if( tabparner_id == 'tab_1' ){ $("#tab_1").addClass("activetab"); $("#tab_1").removeClass("deactivetab"); $("#tab_2").removeClass("activetab"); $("#tab_2").addClass("deactivetab"); $('#partner_tab_1').show(); $('#partner_tab_2').hide(); } if( tabparner_id == 'tab_2' ){ $("#tab_2").addClass("activetab"); $("#tab_2").removeClass("deactivetab"); $("#tab_1").removeClass("activetab"); $("#tab_1").addClass("deactivetab"); $('#partner_tab_1').hide(); $('#partner_tab_2').show(); } }); </script> </body> </html>