</tr> </thead> <tbody> </tbody> </table> <div class="clear"></div> </form> <h3><?php echo Yii::t("default", "Incoming orders from merchant for today"); ?> <span class="uk-text-success"> <?php echo FormatDateTime(date('c'), false); //echo date('F d, Y') ?> </span></h3> <form id="frm_table_list3" method="POST" class="report uk-form uk-form-horizontal" > <input type="hidden" name="action" id="action" value="rptIncomingOrders"> <input type="hidden" name="tbl" id="tbl" value="item"> <table id="table_list3" class="uk-table uk-table-hover uk-table-striped uk-table-condensed"> <thead> <tr> <th width="2%"><?php echo Yii::t('default', "Ref#"); ?> </th> <th width="2%"><?php
?> <div class="delivery_options uk-form" style="margin-top:10px;"> <h5><?php echo Yii::t("default", "Delivery Options"); ?> </h5> <?php echo CHtml::dropDownList('delivery_type', $now, (array) Yii::app()->functions->DeliveryOptions($merchant_id)); ?> <?php echo CHtml::hiddenField('delivery_date', $now); ?> <?php echo CHtml::textField('delivery_date1', FormatDateTime($now, false), array('class' => "j_date", 'data-id' => 'delivery_date')); ?> <div class="delivery_asap_wrap"> <?php echo CHtml::textField('delivery_time', $now_time, array('class' => "timepick", 'placeholder' => Yii::t("default", "Delivery Time"))); ?> <span class="delivery-asap"> <span class="uk-text-small uk-text-muted"><?php echo Yii::t("default", "Delivery ASAP?"); ?> </span> <?php echo CHtml::checkBox('delivery_asap', false, array('class' => "icheck"));
public function smsLogs() { $slug = Yii::app()->request->baseUrl . "/admin/" . $_GET['slug']; $stmt = "SELECT a.*,\r\n\t\t\t(\r\n\t\t\tselect restaurant_name\r\n\t\t\tfrom\r\n\t\t\t{{merchant}}\r\n\t\t\twhere merchant_id=a.merchant_id\r\n\t\t\t) as restaurant_name\r\n\t\t\t FROM\r\n\t\t\t{{sms_broadcast_details}} a\r\n\t\t\tORDER BY id DESC\r\n\t\t\tLIMIT 0,1000\r\n\t\t\t"; if ($res = $this->rst($stmt)) { foreach ($res as $val) { /*$action="<div class=\"options\"> <a href=\"$slug/Do/Add/?id=$val[id]\" >".Yii::t("default","Edit")."</a> <a href=\"javascript:;\" class=\"row_del\" rev=\"$val[id]\" >".Yii::t("default","Delete")."</a> </div>";*/ /*$date=Yii::app()->functions->prettyDate($val['date_created']); $date=Yii::app()->functions->translateDate($date); */ $date = FormatDateTime($val['date_created']); $feed_data['aaData'][] = array($val['id'], "<span class=\"uk-text-bold\">" . $val['gateway'] . "</span>", $val['restaurant_name'], $val['contact_phone'], "<span class=\"uk-text-success uk-text-small\">" . $val['sms_message'] . "</span>", "<span class=\"uk-text-warning uk-text-small\">" . $val['gateway_response'] . "</span>", "<span class=\"uk-text-danger uk-text-small\">" . $val['status'] . "</span>", $date); } $this->otableOutput($feed_data); } $this->otableNodata(); }
</td> <td width="5%"> <a href="javascript:;" class="view-receipt" data-id="<?php echo $val['order_id']; ?> "><?php echo $val['order_id']; ?> </a> </td> <!--<td width="5%"><?php echo displayPrice(getCurrencyCode(), standardPrettyFormat($val['voucher_amount'])); ?> </td>--> <td width="5%"><?php echo FormatDateTime($val['date_created']); ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <p class="uk-text-danger"><?php echo t("No results");
function generate($title, $user, $object) { global $truncateText; $results = $object->GetList(array(array("onlineuser_onlineuserid", "=", $user->onlineuserId))); $alt = false; $rowclass = ""; if (count($results) > 0 || isSuperUser(false)) { $class = strtolower(get_class($object)); echo "<span class='adminrowheader'>{$title} Admin</span>"; if ($class != "platinum_membership" || isSuperUser(false)) { echo " - <a href='" . $class . "_form.php' class='newslarge'>create new</a>"; } echo "<div class=\"spacer\"></div>"; echo "<table class=\"table\">"; if (count($results) == 0) { if (isSuperUser(false)) { echo "<tr><td>"; echo "currently have no entries"; echo "</td></tr>"; } } else { $hasName = isset($results[0]->name); $hasHeading = isset($results[0]->heading); $hasDescription = isset($results[0]->description); $hasText = isset($results[0]->text); $hasLink = isset($results[0]->link); if ($class == "platinum_membership" || $class == "supplier" || $class == "gold_membership") { $hasStats = true; } else { $hasStats = false; } echo "<TR>"; if ($hasName) { echo "<TD>Name</td>"; } elseif ($hasHeading) { echo "<TD>Heading</td>"; } if ($hasDescription) { echo "<TD>Description</td>"; } elseif ($hasText) { echo "<TD>Text</td>"; } if ($hasLink) { echo "<TD>URL</td>"; } echo "<TD>Created</td>"; echo "<TD>Expires</td>"; echo "<td>Status</td>"; echo "<TD><!-- Functions --></td>"; if ($hasStats && isSuperUser(false)) { echo "<TD>Impressions</TD>"; echo "<TD>Clicks</TD>"; } echo "</tr>"; foreach ($results as $obj) { if ($alt) { $rowclass = "row_even"; } else { $rowclass = "row_odd"; } $alt = !$alt; echo "<tr>"; if ($hasName) { echo "<td class=\"{$rowclass}\">" . $obj->name . "</td>"; } else { if ($hasHeading) { echo "<td class=\"{$rowclass}\">" . $obj->heading . "</td>"; } } if ($hasDescription) { echo "<td class=\"{$rowclass}\">" . strip_tags(substr($obj->description, 0, $truncateText)) . "...</td>"; } else { if ($hasText) { echo "<td class=\"{$rowclass}\">" . strip_tags(substr($obj->text, 0, $truncateText)) . "...</td>"; } } if ($hasLink) { echo "<td class=\"{$rowclass}\">" . $obj->link . "</td>"; } echo "<td class=\"{$rowclass}\">" . FormatDateTime($obj->dt_created, 7) . "</td>"; echo "<td class=\"{$rowclass}\">" . FormatDateTime($obj->dt_expire, 7) . "</td>"; $classId = $class . "Id"; $status = $class . "_status"; //echo "</td>"; if ($obj->{$status} != "temp" && $obj->dt_expire <= date("Y-m-d")) { echo "<td class=\"{$rowclass}\">Expired</td><td class=\"{$rowclass}\"><ul>"; echo "<li><a href=\"renew.php?type={$class}&id=" . $obj->{$classId} . "\">Renew</a></li>"; } else { switch ($obj->{$status}) { case "temp": echo "<td class=\"{$rowclass}\">Temporary</td><td class=\"{$rowclass}\"><ul>"; echo "<li><a href=\"activate.php?type={$class}&id=" . $obj->{$classId} . "\">Activate</a></li>"; break; case "active": echo "<td class=\"{$rowclass}\">Active</td><td class=\"{$rowclass}\"><ul>"; if (isSuperUser(false)) { echo "<li><a href=\"deactivate.php?type={$class}&id=" . $obj->{$classId} . "\">Pause</a></li>"; } break; case "disabled": echo "<td class=\"{$rowclass}\">Paused</td><td class=\"{$rowclass}\"><ul>"; if (isSuperUser(false)) { echo "<li><a href=\"activate.php?type={$class}&id=" . $obj->{$classId} . "\">Continue</a></li>"; } break; } } echo "<li><a href=\"" . $class . "_form.php?id=" . $obj->{$classId} . "\">Modify</a></li>"; if (($class == "gold_membership" || $class == "supplier") && isSuperUser(false)) { echo "<li><a href=\"spotlight_form.php?type={$class}&membershipid=" . $obj->{$classId} . "\">Spotlight</a></li>"; } if (isSuperUser(false)) { echo "<li><a href=\"#\" onClick=\"sure('{$class}','" . $obj->{$classId} . "')\">Delete</a></li>"; } echo "</ul>"; echo "</td>"; if ($hasStats && isSuperUser(false)) { $stats = new Stats(); $results = $stats->GetList(array(array("objectname", "=", $class), array("objectid", "=", $obj->{$classId}))); // we should only get one object back in the array $statObject = $results[0]; echo "<TD class=\"{$rowclass}\">" . $statObject->impressions . "</td>"; echo "<TD class=\"{$rowclass}\">" . $statObject->clicks . "</td>"; } echo "</tr>"; } } echo "</table>"; } echo "<br/>"; echo "<br/>"; }
?> <img src="images/sortdown.gif" width="10" height="9" border="0"> <?php } ?> </td> <td><span><?php echo $x_location; ?> </span></td> </tr> <tr> <td valign="top">Date posted</span></td> <td><span><?php echo FormatDateTime($x_dt_created, 7); ?> </span></td> </tr> <tr> <td align="right" valign="top" ></td><td><?php if ($x_link != "") { $ahref = "<a class = 'news' href='{$x_link}' target='_external'>View Detail</a>"; } else { $ahref = "<a class = 'news' href='jobview.php?jobid=" . urlencode($x_jobid) . "'>View Detail</a>"; } ?> <span aligh = "right"> <?php echo $ahref; ?>
echo CHtml::textField('amount', normalPrettyPrice($data['amount']), array('data-validation' => 'required', 'class' => 'numeric_only')); ?> <span class="uk-text-muted"><?php echo Yii::t("default", "Voucher amount discount."); ?> </span> </div> <div class="uk-form-row"> <label class="uk-form-label"><?php echo Yii::t("default", "Expiration"); ?> </label> <?php echo CHtml::hiddenField('expiration', $data['expiration']); echo CHtml::textField('expiration1', FormatDateTime($data['expiration'], false), array('class' => 'j_date', 'data-id' => 'expiration', 'data-validation' => "required")); ?> </div> <div class="uk-form-row"> <label class="uk-form-label"><?php echo Yii::t("default", "Used only once"); ?> </label> <?php echo CHtml::checkBox('used_once', $data['used_once'] == 2 ? true : false, array('class' => "icheck", 'value' => 2)); ?> </div> <div class="uk-form-row"> <label class="uk-form-label">Status</label>
</label> <span class="uk-text-primary"><?php echo adminCurrencySymbol() . standardPrettyFormat($data['package_price']); ?> </span> </div> <div class="uk-form-row"> <label class="uk-form-label"><?php echo Yii::t("default", "Membership Expired On"); ?> </label> <span class="uk-text-success"> <?php echo CHtml::hiddenField('membership_expired', $data['membership_expired']); echo CHtml::textField('membership_expired1', FormatDateTime($data['membership_expired'], false), array('class' => "j_date", 'data-validation' => "requiredx", 'data-id' => 'membership_expired')); ?> </div> </li> <li> <div class="uk-form-row"> <label class="uk-form-label"><?php echo Yii::t("default", "Featured"); ?> ?</label> <?php echo CHtml::checkBox('is_featured', $data['is_featured'] == 2 ? true : false, array('class' => "icheck", 'value' => 2)); ?> <p class="uk-text-muted"><?php echo Yii::t("default", "Check this if you want this merchant featured on homepage");
<?php require "common_all.php"; $section = 2; require "top.php"; require "news_fixed.html"; $news = new News(); $newsList = $news->GetList(array(array("live")), "dt_created", false); echo "<table>"; foreach ($newsList as $newsObject) { echo "<TR><TD>"; echo "<table width = '100' align = 'right' cellpadding = '0' cellspacing = '0'><tr><td align = 'right'>" . FormatDateTime($newsObject->dt_created, 7) . "</td></tr></table>"; echo "<b>" . $newsObject->heading . "</b>"; echo "</td></tr>"; echo "<TR><TD class=\"cell_description\">"; echo $newsObject->description; echo "</td></tr>"; echo "<tr><TD class=\"cell_link\">"; echo "<a href=\"" . $newsObject->link . "\" class=\"news\" target='_link'>Click here for the full story</a>"; echo "</td>"; echo "</tr>"; echo "<TR><TD><hr class = \"newsbreaker\" ><BR></td></tr>"; } echo "</table>"; require "bottom.php";
function generateJobLink($user) { global $truncateText; $db = new DatabaseConnection(); $result = $db->Query("SELECT * FROM job where onlineuser_onlineuserid={$user->onlineuserId} ORDER BY dt_created DESC"); $rows = $db->Rows(); $alt = false; $rowclass = ""; if ($rows > 0 || isSuperUser(false)) { echo "<br/>"; echo "<span class='adminrowheader'>Job Admin</span>"; echo " - <a href='job_post.php' class='newslarge'>create new</a>"; echo "<div class=\"spacer\"></div>"; echo "<table class=\"table\">"; if ($rows == 0) { if (isSuperUser(false)) { echo "<tr><td>"; echo "currently have no entries"; echo "</td></tr>"; } } else { echo "<TR><TD>Position</td><TD>Description</td><TD>Salary</td><TD>Location</td><TD>Company</td><TD>Created</td><TD>Expires</td><TD>Status</td><TD><!-- Functions --></td></tr>"; for ($i = 0; $i < $rows; $i++) { $row = mysql_fetch_assoc($result); if ($alt) { $rowclass = "row_even"; } else { $rowclass = "row_odd"; } $alt = !$alt; echo "<tr>"; echo "<td class=\"{$rowclass}\">" . $row["position"] . "</td>"; echo "<td class=\"{$rowclass}\">" . substr($row["profile"], 0, $truncateText) . "...</td>"; echo "<td class=\"{$rowclass}\">" . $row["bonus"] . "</td>"; echo "<td class=\"{$rowclass}\">" . $row["location"] . "</td>"; echo "<td class=\"{$rowclass}\">" . $row["company"] . "</td>"; echo "<td class=\"{$rowclass}\">" . FormatDateTime($row["dt_created"], 7) . "</td>"; echo "<td class=\"{$rowclass}\">" . FormatDateTime($row["dt_expire"], 7) . "</td>"; $jobid = $row["jobid"]; if ($row["job_status"] != "temp" && $row["dt_expire"] <= date("Y-m-d")) { echo "<td class=\"{$rowclass}\">Expired</td><td class=\"{$rowclass}\"><ul>"; echo "<li><a href=\"renew.php?type=Job&id=" . $jobid . "\">Renew</a></li>"; } else { switch ($row["job_status"]) { case "temp": echo "<td class=\"{$rowclass}\">Temporary</td><td class=\"{$rowclass}\"><ul>"; echo "<li><a href='activate.php?type=Job&id={$jobid}'>Activate</a></li>"; break; case "active": echo "<td class=\"{$rowclass}\">Active</td><td class=\"{$rowclass}\"><ul>"; if (isSuperUser(false)) { echo "<li><a href='deactivate.php?type=Job&id={$jobid}'>Pause</a></li>"; } break; case "disabled": echo "<td class=\"{$rowclass}\">Paused</td><td class=\"{$rowclass}\"><ul>"; if (isSuperUser(false)) { echo "<li><a href='activate.php?type=Job&id={$jobid}'>Continue</a></li>"; } } } echo "<li><a href='jobedit.php?jobid={$jobid}'>Modify</a></li>"; //echo "<li><a href='jobview.php?jobid=$jobid' target='_blank'>View</a></li>"; if (isSuperUser(false)) { echo "<li><a href='#' onClick=\"sure('Job','{$jobid}')\">Delete</a></li>"; } echo "</ul>"; echo "</td>"; echo "</tr>"; } } echo "</table>"; echo "<br/>"; echo "<br/>"; } }
} if (isset($result['html']) && $result['html'] != '') { echo $result['html']; } else { // layout the search results based on data we are given... if (isset($result['header'])) { echo $result['header'] . '<br />'; } echo '<img src="' . (isset($result['image']) ? $result['image'] : 'images/folders.gif') . '" alt="" /> '; echo '<a href="' . $result['url'] . '" class="option"><strong>' . $result['title'] . '</strong></a><br />'; echo '<div style="padding-left:8px;">'; if (isset($result['author'])) { echo _CONTRIBUTEDBY . ' ' . $result['author']; } if (isset($result['date'])) { echo ' ' . _ON . ' ' . FormatDateTime($result['date'], _DATESTRING3); } if (isset($result['author']) || isset($result['date'])) { echo '<br />'; } if (isset($result['short_text'])) { echo $result['short_text'] . '...<br />'; } if (isset($result['footer'])) { echo $result['footer'] . '<br />'; } echo '</div><br />'; if (isset($result['results_footer'])) { echo $result['results_footer']; } }
<h3 style="text-align:center;"><?php echo t("Booking Summary Report"); ?> </h3> <?php if (isset($_GET['start_date']) || isset($_GET['end_date'])) { ?> <p style="text-align:center;"><?php echo FormatDateTime($_GET['start_date'], false) . " " . t("and") . " " . FormatDateTime($_GET['end_date'], false); ?> </p> <?php } else { ?> <p style="text-align:center;"><?php echo t("As of") . " " . FormatDateTime(date('F d Y'), false); ?> </p> <?php } ?> <input type="hidden" name="action" id="action" value="bookingSummaryReport"> <input type="hidden" name="tbl" id="tbl" value="item"> <table id="table_list" class="uk-table uk-table-hover uk-table-striped uk-table-condensed"> <!--<caption>Merchant List</caption>--> <thead> <tr> <th width="3%"><?php echo Yii::t('default', "Total Approved"); ?>
echo $x_contact_email; ?> " class='news'><?php echo $x_contact_email; ?> </a></td> </tr> <?php if (isSuperUser(false)) { ?> <tr> <td bgcolor="#FFFFFF"><span style="font-weight: bold">Expiry Date</span></td> <td bgcolor="#FFFFFF"> <?php echo FormatDateTime($x_dt_expire, 7); ?> </td> </tr> <?php } ?> </table> </form> <p> <?php include "bottom.php"; phpmkr_db_close($conn); //------------------------------------------------------------------------------- // Function LoadData // - Variables setup: field variables
?> </td> <td><?php echo $val['payment_type']; ?> </td> <td><?php echo $val['payment_method']; ?> </td> <td><?php echo $account; ?> </td> <td><?php echo FormatDateTime($val['date_to_process'], false); ?> </td> </tr> <?php } ?> </thead> <tbody> </tbody> </table> <?php } else { ?> <p><?php
public function adminCustomerReviews() { $slug = $this->data['slug']; $stmt = "SELECT a.*,\n\t\t(\n\t\tselect concat(first_name,' ',last_name)\n\t\tfrom {{client}}\n\t\twhere\n\t\tclient_id=a.client_id\n\t\t) client_name,\n\t\t\n\t\t(\n\t\tselect restaurant_name\n\t\tfrom\n\t\t{{merchant}}\n\t\twhere\n\t\tmerchant_id=a.merchant_id\n\t\t) as merchant_name\n\t\t\n\t\t FROM\n\t\t{{review}} a\t\t\t\n\t\tORDER BY id DESC\n\t\t"; if ($res = $this->rst($stmt)) { foreach ($res as $val) { $action = "<div class=\"options\">\n\t \t\t<a href=\"{$slug}/Do/Add/?id={$val['id']}\" >" . Yii::t("default", "Edit") . "</a>\n\t \t\t<a href=\"javascript:;\" class=\"row_del\" rev=\"{$val['id']}\" >" . Yii::t("default", "Delete") . "</a>\n\t \t\t</div>"; if ($this->data['currentController'] == "admin") { } else { if (Yii::app()->functions->getOptionAdmin('merchant_can_edit_reviews') == "yes") { $action = ''; } } /*$date=Yii::app()->functions->prettyDate($val['date_created']); $date=Yii::app()->functions->translateDate($date); */ $date = FormatDateTime($val['date_created']); $feed_data['aaData'][] = array($val['id'], $val['merchant_name'] . $action, $val['client_name'], $val['review'], $val['rating'], $date . "<br/><div class=\"uk-badge {$class}\">" . strtoupper(Yii::t("default", $val['status'])) . "</div>"); } $this->otableOutput($feed_data); } $this->otableNodata(); }