echo $id; ?> </a> </td> <td> <a href="<?php echo $customerlink; ?> " ><?php echo $order->company; ?> </a> </td> <td> <?php echo $helper->formatime($order->order_date, $configs->params['timeformat']); ?> </td> <td> <?php echo $order->cost . ' '; if (isset($order->currency) && $order->currency != NULL) { echo $order->currency; } else { echo $configs->currencydef; } ?> </td>
echo "<a href='index.php?option=com_adagency&controller=adagencyPackages&task=edit&cid[]=" . $camp->package_id . "'>" . $camp->description . "</a>"; ?> </td> <td> <?php $offset = JFactory::getApplication()->getCfg('offset'); $jnow = JFactory::getDate('now', $offset); $current_date = $jnow->toSql(true); if ($expired == 1 && $camp->status != "-1") { echo '<span class="label label-default campaign-status"> ' . JText::_("AD_CMPEXPIRED") . ' </span>'; } elseif (strtotime($camp->start_date) > strtotime($current_date) && $camp->status != "-1") { echo '<span class="label label-warning campaign-status"> ' . JText::_("ADAG_START") . ": " . $helper->formatime($camp->start_date, $configs->params['timeformat']) . ' </span>'; } elseif ($camp->status == "1") { echo '<span class="label label-success campaign-status"> <a href="index.php?option=com_adagency&controller=adagencyCampaigns&task=pause&cid=' . $camp->id . '" style="color:green" >' . JText::_("AD_CMPACTIVE") . '</a> </span>'; } elseif ($camp->status == "0") { echo '<span class="label label-warning campaign-status"> <a href="index.php?option=com_adagency&controller=adagencyCampaigns&task=unpause&cid=' . $camp->id . '" style="color:red">' . JText::_("AD_CMPPAUSED") . '</a> </span>'; } elseif ($camp->status == "-1") { echo '<span class="label label-important campaign-status">' . JText::_("ADAGA_DELETED") . '</span>'; } ?> </td>
if (trim(strtolower($order->payment_type)) == 'free') { $payment_method = JText::_("VIEWPACKAGEFREE"); } else { $payment_method = JText::_("ADAG_" . strtoupper($order->payment_type) . "_PAYMENT"); } } $ok = 0; ?> <tr> <td class="uk-visible-large"><?php $j++; echo $j; ?> </td> <td class="uk-visible-large"><?php echo $helper->formatime($order->order_date, @$params['timeformat']); ?> </td> <td><?php echo $name; ?> </td> <td><?php echo JText::_("ADAG_" . strtoupper($order->type) . "_TEXT"); ?> </td> <td class="uk-visible-large"> <?php $currency_price = $this->currency_price; if (isset($order->currency) && $order->currency != NULL) { if ($currency_price == 0) {
<a href="<?php echo $zonelink; ?> "><?php echo $ads->zone_name; ?> </a> <?php } else { ?> <span style="font-weight:bold;">No Zone</span> <?php } ?> </td>--> <td> <?php echo $helper->formatime($ads->created, $params); ?> </td> <td> <a class="modal2" href="<?php echo JURI::root() . "index.php?option=com_adagency&controller=adagencyAds&task=preview&tmpl=component&adid=" . intval($ads->id) . "&format=raw"; ?> "><?php echo JText::_('VIEWADPREVIEW'); ?> </a> </td> <td> <?php $nr_campaigns = $helperModel->getCampaignCount($ads->id); if (intval($nr_campaigns) > 0) {
foreach ($data_row as $row) { ?> <TR class="<?php echo "row{$k}"; ?> "> <?php $db = JFactory::getDBO(); foreach ($row as $key => $val) { ?> <TD style="text-align:left;"> <?php if ('ip_address' == $key) { echo long2ip($val); } elseif ($key == 'entry_date') { echo $helper->formatime($val, $params); } elseif ($key == 'aid') { $sql = 'SELECT u.name FROM #__users AS u WHERE u.id = (SELECT user_id FROM #__ad_agency_advertis WHERE aid = ' . intval($val) . ' LIMIT 1) LIMIT 1'; $db->setQuery($sql); $res = $db->loadResult(); echo $res; $res = NULL; } else { echo $val; } } ?> </TD> <?php $k = 1 - $k; }
$format_string = "Y-m-d"; break; case "4": $format_string = "m/d/Y"; break; case "5": $format_string = "d-m-Y"; break; } $format_string_2 = str_replace("-", "-%", $format_string); $format_string_2 = str_replace("/", "/%", $format_string_2); $format_string_2 = "%" . $format_string_2; $format_string_2 = str_replace("H:i:s", "%H:%M:%S", $format_string_2); $joomla_date = JFActory::getDate(); $current_date = $joomla_date->toSql(); $now_now = $helper->formatime($current_date, $configs->params['timeformat']); echo JHtml::calendar(trim($now_now), 'pay_date', 'pay_date', $format_string_2, ''); echo "<input type='hidden' name='tfa' value='" . $configs->params['timeformat'] . "' />"; ?> <span class="editlinktip hasTip" title="<?php echo JText::_('AD_PAYMENT_DATE_TIP'); ?> " > <img src="components/com_adagency/images/tooltip.png" border="0"/></span> </div> </div> <input type="hidden" name="images" value="" /> <input type="hidden" name="option" value="com_adagency" /> <input type="hidden" name="id" value="" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="controller" value="adagencyOrders" />
if ($camp_row->type == "cpm") { echo JText::_('ADAG_CPM_TEXT'); } elseif ($camp_row->type == "pc") { echo JText::_('ADAG_PC_TEXT'); } elseif ($camp_row->type == "fr") { echo JText::_('ADAG_FR_TEXT'); } elseif ($camp_row->type == "in") { echo JText::_('ADAG_IN_TEXT'); } ?> </li> <li><b><?php echo JText::_("AD_NEW_CAMP_START_DATE"); ?> </b>: <?php echo $helper->formatime($camp_row->start_date, $configs->params['timeformat']); ?> </li> </ul> </div> <div class="ada-campaigns-box uk-panel uk-panel-box uk-panel-box-secondary uk-panel-header"> <h3 class="uk-panel-title"><i class="uk-icon-info-circle"></i> <?php echo JText::_("AD_NEW_CAMP_STS"); ?> </h3> <?php if ($camp_row->type == "cpm") { if ($camp_row->quantity > 0) { $package_row->quantity = intval($package_row->quantity) - intval($camp_row->quantity); ?>
$chan->from = ' [' . JText::_('ADAG_BACKEND') . ']'; } if ($chan->advertiser_id != 0) { echo $chan->uname . " (<a href='index.php?option=com_adagency&controller=adagencyAdvertisers&task=edit&cid[]=" . $chan->uid . "'>" . $chan->username . "</a>)" . $chan->from; } elseif (isset($chan->username) && $chan->username != NULL) { echo $chan->uname . ' (' . $chan->username . ')' . $chan->from; } else { echo '-' . $chan->from; } ?> </td> <td> <?php //if($chan->banner_id) { echo "<a href='".$chan->blink."'>".$chan->bname."</a>"; } else { echo '-';} if (isset($chan->created)) { echo $helper->formatime($chan->created, $this->params); } else { echo " "; } ?> </td> <td> <?php if (isset($chan->public) && $chan->public == 'Y') { echo '<i class="fa fa-check" style="cursor: pointer;" onclick="document.getElementById(\'c2p\').value = \'' . $id . '\';submitbutton(\'unpublish\');" alt="Approve" title="Approve" ></i>'; } else { echo '<i class="fa fa-ban" style="cursor: pointer;" onclick="document.getElementById(\'c2p\').value = \'' . $id . '\';submitbutton(\'publish\');" alt="Unapprove" title="Unapprove"></i>'; } ?> </td> </tr>
<?php //echo $blocked; $states = array(1 => array('unblock', '', '', '', true, 'unpublish', 'unpublish'), 0 => array('block', '', '', '', true, 'publish', 'publish')); $self = $loggeduser->id == $advertiser->id; echo JHtml::_('jgrid.state', $states, $advertiser->block, $i, '', !$self); ?> </td> <td> <?php echo $advertiser->email; ?> </td> <td> <?php echo $helper->formatime($advertiser->registerDate, @$this->params['timeformat']); ?> </td> <td> <a href="<?php echo $cmplink; ?> " ><?php echo $advertiser->count; ?> </a> </td> </tr>
</div> <div class="alert alert-notice"> <?php echo JText::_('AD_NOTICE_CAMP'); ?> </div> <div class="control-group"> <label class="control-label"> <?php echo JText::_('AD_CAMP_START_DATE'); ?> </label> <div class="controls"> <?php echo JHTML::_('calendar', $helper->formatime($camp_row->start_date, $configs->params['timeformat']), 'start_date', 'start_date', '' . $ymd . $hms, array('class' => 'inputbox', 'size' => '25', 'maxlength' => '19')); echo "<input type='hidden' name='tfa' value='" . $configs->params['timeformat'] . "' />"; ?> <span class="editlinktip hasTip" title="<?php echo JText::_('AD_CAMP_START_DATE_TIP'); ?> " > <img src="components/com_adagency/images/tooltip.png" border="0"/></span> </div> </div> <?php } ?>