function GenerateDDL($name, $attributes, $selectedValue, $valueColum, $displayTextColumn, $query, $extraOption = NULL, $extraOption2 = NULL) { $r = Query($query); $result = "<select name='{$name}' id='{$name}' {$attributes}>"; if ($extraOption !== NULL) { $selected = $selectedValue == 0 ? 'selected=selected ' : ''; $result .= "<option value='0' {$selected} >{$extraOption}</option>"; } if ($extraOption2 !== NULL) { $selected = $selectedValue == -1 ? 'selected=selected ' : ''; $result .= "<option value='-1' {$selected} >{$extraOption2}</option>"; } if (Num($r) != 0) { while ($row = mysql_fetch_array($r)) { if (is_array($selectedValue) && in_array($row[$valueColum], $selectedValue) || $row[$valueColum] == $selectedValue) { $result .= "<option selected value='" . $row[$valueColum] . "'>" . Decode($row[$displayTextColumn]) . "</option>"; } else { $result .= "<option value='" . $row[$valueColum] . "'>" . Decode($row[$displayTextColumn]) . "</option>"; } } } $result .= "</select>"; return $result; }
</tr> <?php $grand_total = 0; if (empty($_GET)) { echo "</tr>"; $grand_total = 0; foreach ($_SESSION[$_SESSION['Auth_name']] as $item) { if ($item['pid'] != '' && $item['pid'] != 'null') { $total = $item['adult_price'] * $item['a_qty'] + $item['child_price'] * $item['c_qty']; $others = $item['guide']['price'] + $item['pickup']['price'] + $item['insurance']['price'] + $item['coffee']['price'] + $item['welcome']['price'] + $item['dinner']['price'] + $item['bike']['price'] + $item['2way']['price']; ?> <tr> <td> <?php echo stripcslashes(Decode($item['name'])); ?> </td> <td id="prodid<?php echo $item['pid']; ?> " class="text-right"> <?php echo $total = ($total + $others) * $item['pkg']; ?> </td> </tr> <?php $grand_total = $grand_total + $total; }
function GetFieldValue($selectedValue, $table, $where, $returnValue = false) { //echo "select `$selectedValue` from `$table` where $where"; $r = Query("select `{$selectedValue}` from `{$table}` where {$where}"); if (Num($r) > 0) { $o = GetObj($r); return Decode($o->{$selectedValue}); } else { return $returnValue; } }
$error_id = $e->getCode(); } } //-------------------------------------------------------------------------------- // Add an action if ($sub_action == "add_action") { $act = new Follow_Up($cn); $act->fromArray($_POST); $act->ag_id = 0; $act->d_id = 0; echo '<div class="content">'; // Add hidden tag echo '<form method="post" action="do.php" name="form_add" id="form_add" enctype="multipart/form-data" >'; echo $supl_hidden; echo dossier::hidden(); $act->ag_comment = isset($_POST['ag_comment']) ? Decode($_POST['ag_comment']) : ""; if (isset($_REQUEST['qcode'])) { $act->qcode_dest = $_REQUEST['qcode']; } echo $act->Display('NEW', false, $base, $retour); echo '<input type="hidden" name="ac" value="' . $_REQUEST["ac"] . '">'; echo '<input type="hidden" name="sa" value="save_action_st2">'; echo '<input type="hidden" name="save_action_st2" value="save_action_st2">'; echo '<input type="submit" class="button" name="save_action_st2" value="' . _('Enregistrer') . '">'; echo '</form>'; echo '</div>'; } if ($error_id != 0) { $error[10] = 'dt_id'; $error[20] = 'ag_timestamp'; $error[30] = 'ag_remind_date';
><i class="icon_set_1_icon-29"></i>Tour guide</li> </ul> </div> <!-- <p class="visible-sm visible-xs"><a class="btn_map" data-toggle="collapse" href="#collapseMap" aria-expanded="false" aria-controls="collapseMap">View on map</a></p>--><!-- Map button for tablets/mobiles --> <div class="row"> <div class="col-md-3"> <h3>Description</h3> </div> <div class="col-md-9 signle_des"> <p> <?php echo stripcslashes(Decode($product_data['long_description'])); ?> </p> </div> </div> <?php if ($schedule_M1['month'] == '' and $schedule_M2['month'] == '' and $schedule_M3['month'] == '' and $schedule_M4['month'] == '') { } else { if ($schedule_M1['id'] == '' and $schedule_M2['id'] == '' and $schedule_M3['id'] == '' and $schedule_M4['id'] == '') { } else { ?> <hr> <div class="row">
<td style="font-weight:bold"><strong>Quantity</strong></td> <td><?php //echo $item['pkg']; ?> </td> </tr>--> <tr class="filters"> <td style="font-weight:bold"><strong>Others</strong></td> <td><?php echo 'SGD ' . $others; ?> </td> </tr> <?php $email_content .= "\n <tr>\n <td> <strong>Item " . $index . "</strong></td>\n <td>" . stripcslashes(Decode($item['name'])) . " </td>\n </tr>\n \n <tr>\n <td> Adult </td>\n <td>" . $item['a_qty'] . " </td>\n </tr>\n <tr>\n <td> Child </td>\n <td>" . $item['c_qty'] . " </td>\n </tr>\n \n <tr>\n <td> Item " . $index . " Total</td>\n <td>SGD " . $item['promo_adult'] . " </td>\n </tr>"; if ($_POST['flag_tour'] == 1) { $email_content .= "<tr>\n\t\t <td> Date-Time </td>\n\t\t <td>" . $date . ' ' . $time . " </td>\n\t\t </tr>"; } if ($item['guide']['name']) { echo ' <tr class="filters"> <td style="font-weight:bold"><strong>' . $item['guide']['name'] . '</strong></td> <td>SGD ' . $item['guide']['price'] . '</td> </tr>'; $email_content .= "\n <tr>\n <td>" . $item['guide']['name'] . " </td>\n <td>SGD " . $item['guide']['price'] . " </td>\n </tr>"; } if ($item['pickup']['name']) { echo '<tr class="filters"> <td style="font-weight:bold"><strong>' . $item['pickup']['name'] . '</strong></td>
</div> </div> <div class="control-group"> <label class="control-label" for="short_description">Short Description</label> <div class="controls"> <input class="input-xlarge" id="short_description" name="short_description" type="text" value="<?php echo stripcslashes(Decode($short_description)); ?> "> </div> </div> <div class="control-group"> <label class="control-label" for="long_description">Long Description</label> <div class="controls"> <textarea id="absurls" name="long_description" rows="15"><?php echo stripcslashes(Decode($long_description)); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="adult_price">Adult Price</label> <div class="controls"> <div class="input-prepend input-append"> <span class="add-on">Original <?php echo CURRENCY_SYMBOL; ?> </span><input id="adult_price" name="adult_price" size="16" type="text" value="<?php echo $adult_price; ?> "><span class="add-on">.00</span></br></br>
</div> </div> </div> <div class="modal fade" id="myModal' . $pid . '"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" style="border-bottom:none;"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <div class="thumb_cart"> <img class="thum_img" src="img/products/' . $prod_img . '" alt=""> </div> <h3 class="modal-title">' . $product_title . '</h3> </div> <div class="modal-body"> <p>' . stripcslashes(Decode($long_desc)) . '</p> </div> <div class="modal-footer"> <a href="single_tour.php?id=' . $pid . '" class="btn_1" >View product reviews</a> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> '; } // $html .= '<hr> // //<div class="text-center">';
?> </a> <!--<a href="#">Personal</a>--></li> </ul> </div> <div class="post-right"><i class="icon-comment"></i><a href="#"><?php echo $blog['comments']; ?> </a>Comments</div> </div> <h2><?php echo $blog['title']; ?> </h2> <p> <?php echo $des = stripcslashes(Decode($blog['long_description'])); ?> </p> <!-- <p> Aenean iaculis sodales dui, non hendrerit lorem rhoncus ut. Pellentesque ullamcorper venenatis elit idaipiscingi Duis tellus neque, tincidunt eget pulvinar sit amet, rutrum nec urna. Suspendisse pretium laoreet elit vel ultricies. Maecenas ullamcorper ultricies rhoncus. Aliquam erat volutpat. </p> <blockquote class="styled"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. </p> <small>Someone famous in <cite title="">Body of work</cite></small> </blockquote>--> </div><!-- end post --> </div><!-- end box_style_1 --> <h4><?php echo $blog['comments']; ?>
</div><!-- End row --> <?php } ?> <?php $query = "SELECT * FROM product where is_deleted='N' and is_active='Y' and adult_price>'0.00' ORDER BY RAND() LIMIT 1"; if ($query_run = Query($query)) { $i = 4; while ($rows = mysql_fetch_assoc($query_run)) { $r_adult_price = $rows['adult_price']; $r_promo_adult_price = $rows['promo_adult_price']; if (intval($r_promo_adult_price) != 0) { $r_adult_price = $r_promo_adult_price; } $p_title = stripcslashes(Decode($rows['title'])); ?> <div class="banner colored"> <h4>Discover our Top tours <span>from <?php echo CURRENCY_SYMBOL; ?> <?php echo (double) $r_adult_price; ?> </span></h4> <p> <?php echo substr($rows['short_description'], 0, 200);
$rows_data1 = getRows(DB_TABLE_PREFIX . 'product', $where1, '*', $sort_order1, '', '', 'Y', '18'); $product_data1 = $rows_data1['data']; if ($rows_data1['total_recs'] > 0) { ?> <div class="main_title"> <h2>Other <span>Popular</span> tours</h2> </div> <div class="row add_bottom_45"> <?php foreach ($product_data1 as $popular_feature) { extract($popular_feature); $pf_id = $id; $pf_title = stripcslashes(Decode($title)); $pf_adult_price = $adult_price; $pf_promo_adult_price = $promo_adult_price; //if (intval($pf_promo_adult_price) != 0) { //$pf_adult_price = $pf_promo_adult_price; //} $pf_image = $image; $image_path_pf = '../img/products/' . $pf_image; if ($pf_image == "" || !file_exists($image_path_pf)) { $image_path_pf = '../img/products/noimage.jpeg'; } ?> <div class="col-md-4 other_tours"> <ul> <!---<a href="<?php echo site_url('kiosk/single_tour.php');
function getVideoSrc($obj, $data, $type, $fileId, $user_sid, $user_token) { $hd = array('flv' => '0', 'flvhd' => '0', 'mp4' => '1', 'hd2' => '2', '3gphd' => '1', '3gp' => '0', 'hd3' => '3'); $hd = $hd[$type]; $stremtype = array('flv' => 'flv', 'mp4' => 'mp4', 'hd2' => 'flv', '3gphd' => 'mp4', '3gp' => 'flv', 'hd3' => 'flv'); $stremtype = $stremtype[$type]; $show = ''; if (@$data->show) { $show = $data->show->show_paid ? "&ypremium=1" : "&ymovie=1"; } $c = "http://k.youku.com/player/getFlvPath/sid/" . $user_sid . "_" . $obj->no . "/st/" . $stremtype . "/fileid/" . $fileId . "?K=" . $obj->k . "&hd=" . $hd . "&myp=0&ts=" . $obj->seconds . "&ypp=0" . $show . "&ep="; $c .= urlencode(Decode(Encode('bf7e5f01', $user_sid . "_" . $fileId . "_" . $user_token))); $c .= "&ctype=12&ev=1&token=" . $user_token; $c .= "&oip=" . $data->ip; return $c; }
$del = "DELETE from wishlist where id=".$pid; $del_qry = Query($del); }else { "<h4>Sorry order has failed due to some unknown errors</h4>"; exit; } */ ?> <?php $email_content .= "\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> <strong>Product Name </strong></td>\n\t\t\t\t\t\t\t\t<td>" . stripcslashes(Decode($item['name'])) . " </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> Quantity </td>\n\t\t\t\t\t\t\t\t<td>" . $item['pkg'] . " </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> Adult </td>\n\t\t\t\t\t\t\t\t<td>" . $item['a_qty'] . " </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> child </td>\n\t\t\t\t\t\t\t\t<td>" . $item['c_qty'] . " </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> original price per adult </td>\n\t\t\t\t\t\t\t\t<td>" . $item['org_price'] . " </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> promo price per adult</td>\n\t\t\t\t\t\t\t\t<td>" . $item['promo_adult'] . " </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td> date-time </td>\n\t\t\t\t\t\t\t\t<td>" . $date . '-' . $time . " </td>\n\t\t\t\t\t\t\t</tr>"; if ($item['guide']['name']) { echo '<tr class="filters"> <td style="font-weight:bold"><strong>' . $item['guide']['name'] . '</strong></td> <td>' . $item['guide']['price'] . '</td> </tr>'; $email_content .= "\n\t\t\t\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t\t\t\t\t <td>" . $item['guide']['name'] . " </td>\n\t\t\t\t\t\t\t\t\t\t <td>" . $item['guide']['price'] . " </td>\n\t\t\t\t\t\t\t\t\t </tr>"; } if ($item['pickup']['name']) { echo '<tr class="filters"> <td style="font-weight:bold"><strong>' . $item['pickup']['name'] . '</strong></td> <td>' . $item['pickup']['price'] . '</td> </tr>'; $email_content .= "\n\t\t\t\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t\t\t\t\t <td>" . $item['pickup']['name'] . " </td>\n\t\t\t\t\t\t\t\t\t\t <td>" . $item['pickup']['price'] . " </td>\n\t\t\t\t\t\t\t\t\t </tr>";
$image_path = '../img/products/' . $image; if ($image == "" || !file_exists($image_path)) { $image_path = '../img/products/noimage.jpeg'; } ?> <tr id="row_<?php echo $id; ?> "> <td><img src="<?php echo $image_path; ?> " style="height: 50px;" /></td> <td><?php echo stripcslashes(Decode($title)); ?> </td> <td><?php echo $code; ?> </td> <td><?php echo $category; ?> </td> <td><?php echo CURRENCY_SYMBOL . $adult_price; ?> </td> <td><?php