$k = 0; $n = count($this->orders); $configs = $this->configs; $lists = $this->lists; $plugs = $this->plugs; require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; $user = JFactory::getUser(); $listDirn = "asc"; $listOrder = "ordering"; $saveOrderingUrl = 'index.php?option=com_adagency&controller=adagencyOrders&task=saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'orderlist', 'adminForm', strtolower($listDirn), $saveOrderingUrl); JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('dropdown.init'); JHtml::_('behavior.modal'); $helper = new adagencyAdminHelper(); ?> <form action="index.php?option=com_adagency&controller=adagencyOrders" method="post"name="topform1"> <div class="row-fluid"> <div class="span12 pull-right"> <h2 class="pub-page-title"> <?php echo JText::_('VIEWTREEORDERS'); ?> </h2> </div> <a class="modal adagency-video-manager pull-right" rel="{handler: 'iframe', size: {x: 750, y: 435}}" href="index.php?option=com_adagency&controller=adagencyAbout&task=vimeo&id=69674037"> <img src="<?php echo JURI::base(); ?>
$n = count($this->camps); $lists = $this->lists; $params = $this->params; $configs = $this->configs; require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; $user = JFactory::getUser(); $listDirn = "asc"; $listOrder = "ordering"; $saveOrderingUrl = 'index.php?option=com_adagency&controller=adagencyCampaigns&task=saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'articleList', 'adminForm', strtolower($listDirn), $saveOrderingUrl); JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('dropdown.init'); JHtml::_('behavior.modal'); JHtml::_('bootstrap.modal'); $helper = new adagencyAdminHelper(); $helperView = new adagencyAdminViewadagencyCampaigns(); $document = JFactory::getDocument(); $document->addStyleSheet(JURI::root() . "components/com_adagency/includes/css/adag_tip.css"); $from = JRequest::getVar("from", ""); $active = JRequest::getVar("active", ""); ?> <script type="text/javascript"> Joomla.submitbutton = function(pressbutton){ if(pressbutton == "add"){ if(eval(document.getElementById("cb0"))){ document.getElementById("campaign-light").style.display = ""; document.getElementById("light-modal-background").style.display = ""; return false; }
# ------------------------------------------------------------------------ # author iJoomla # copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.ijoomla.com # Technical Support: Forum - http://www.ijoomla.com/forum/index/ -------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); $k = 0; $get = JRequest::get('get'); $n = count($this->orders); $currencydef = trim($this->currencydef, " "); $plugs = $this->plugs; $params = $this->params; $helper = new adagencyAdminHelper(); $itemid = $this->itemid; $itemid_ads = $this->itemid_ads; $itemid_adv = $this->itemid_adv; $itemid_cmp = $this->itemid_cmp; $itemid_pkg = $this->itemid_pkg; $item_id_cpn = $this->itemid_cpn; if ($itemid != 0) { $Itemid = "&Itemid=" . intval($itemid); } else { $Itemid = NULL; } if ($itemid_ads != 0) { $Itemid_ads = "&Itemid=" . intval($itemid_ads); } else { $Itemid_ads = NULL;
$lists = $this->lists; $params = $this->params; require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; $document = JFactory::getDocument(); $document->addScript(JURI::root() . "components/com_adagency/includes/js/graybox.js"); $document->addStyleSheet('components/com_adagency/css/joomla16.css'); $user = JFactory::getUser(); $listDirn = "asc"; $listOrder = "ordering"; $saveOrderingUrl = 'index.php?option=com_adagency&controller=adagencyAds&task=saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'adslist', 'adminForm', strtolower($listDirn), $saveOrderingUrl); JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('dropdown.init'); $helperView = new adagencyAdminViewadagencyAds(); $helper = new adagencyAdminHelper(); $helperModel = new adagencyAdminModeladagencyAds(); $all_advertisers = $this->getAllAdvertisers(); ?> <?php require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "includes" . DS . "js" . DS . "ads.php"; ?> <script type="text/javascript"> Joomla.submitbutton = function(pressbutton){ if(pressbutton == "add" || pressbutton == "copy"){ if(eval(document.getElementById("cb0")) && eval(document.getElementById("cb1")) && eval(document.getElementById("cb2")) && eval(document.getElementById("cb3")) && eval(document.getElementById("cb4"))){ document.getElementById("ads-light").style.display = ""; document.getElementById("light-modal-background").style.display = ""; return false;
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.ijoomla.com # Technical Support: Forum - http://www.ijoomla.com/forum/index/ -------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); $lists = $this->lists; $task = $this->task; $filds = $this->filds_out; $data_row = $this->data_row; $params = $this->params; $start_date = $this->start_date; $end_date = $this->end_date; $k = 0; $helper = new adagencyAdminHelper(); require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; include JPATH_BASE . "/components/com_adagency/includes/js/reports.php"; ?> <form class="form-horizontal" method="post" id="adminForm" name="adminForm" enctype="multipart/form-data"> <div class="row-fluid"> <div class="span12 pull-right"> <h2 class="pub-page-title"> <?php echo JText::_('VIEWTREEREPORTS'); ?> </h2> <a class="modal adagency-video-manager pull-right" rel="{handler: 'iframe', size: {x: 750, y: 435}}" href="http://www.ijoomla.com/redirect/adserver/videos/reports.htm"> <img src="<?php echo JURI::base();
function editForm($tpl = null) { $helper = new adagencyAdminHelper(); $my = JFactory::getUser(); //echo "<pre>";var_dump($my);die(); require_once JPATH_SITE . DS . 'components' . DS . 'com_adagency' . DS . 'helpers' . DS . 'sajax.php'; $db = JFactory::getDBO(); $advertiser = $this->get('Advertiser'); //echo "<pre>";var_dump($advertiser);die(); $isNew = $advertiser->aid < 1; $text = $isNew ? JText::_('New') : JText::_('Edit'); //BUG registered users jimport("joomla.database.table.user"); $user = new JUser(); if (!$isNew) { $user->load($advertiser->user_id); } $itemid = $this->getModel("adagencyConfig")->getItemid('adagencyadvertisers'); $itemid_cpn = $this->getModel("adagencyConfig")->getItemid('adagencycpanel'); $this->assign("itemid_cpn", $itemid_cpn); $configs = $this->get('Conf'); if (isset($configs->show)) { $show = explode(";", $configs->show); } else { $show = NULL; } if (isset($configs->mandatory)) { $mandatory = explode(";", $configs->mandatory); } else { $mandatory = NULL; } if (count($show) >= 2) { unset($show[count($show) - 1]); } if (count($mandatory) >= 2) { unset($mandatory[count($mandatory) - 1]); } $configs->show = $show; $configs->mandatory = $mandatory; $this->assign("conf", $configs); $this->assign("user", $user); $this->assign("advertiser", $advertiser); if (isset($_SESSION['ad_country'])) { $advertiser->country = $_SESSION['ad_country']; } $configs = $this->_models['adagencyconfig']->getConfigs(); $country_option = $helper->get_country_options($advertiser, false, $configs); //echo "<pre>";var_dump($country_option);die(); $lists['country_option'] = $country_option; $query = "SELECT country FROM #__ad_agency_states GROUP BY country ORDER BY country ASC"; $db->setQuery($query); $countries = $db->loadObjectList(); //echo "<pre>";var_dump($countries);die(); $profile = new StdClass(); $profile->country = $advertiser->country; $profile->state = $advertiser->state; if (isset($_SESSION['ad_state']) && $_SESSION['ad_state'] != '') { $advertiser->state = $_SESSION['ad_state']; } $shipcountry_option = $helper->get_country_options($advertiser, true, $configs); $lists['shipcountry_options'] = $shipcountry_option; $lists['customerlocation'] = $helper->get_store_province($advertiser); $profile = new StdClass(); $profile->country = $advertiser->shipcountry; $profile->state = $advertiser->state; $lists['customershippinglocation'] = $helper->get_store_province($profile, true, $configs); $content = $this->_models['adagencyplugin']->getPluginOptions($advertiser->paywith); $lists['paywith'] = $content; $captch = $configs->captcha; $this->assign("is_captcha", $captch); $this->assign("lists", $lists); $this->assign("itemid", $itemid); parent::display($tpl); }
function editForm($tpl = null) { $helper = new adagencyAdminHelper(); jimport("joomla.database.table.user"); require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'sajax.php'; $db = JFactory::getDBO(); $advertiser = $this->get('advertiser'); $isNew = $advertiser->aid < 1; $text = $isNew ? JText::_('New') : JText::_('Edit'); JToolBarHelper::title(JText::_('AD_EDIT_ADV') . ":<small>[" . $text . "]</small>"); JToolBarHelper::save(); if ($isNew) { JToolBarHelper::cancel(); } else { JToolBarHelper::cancel('cancel', 'Close'); } $user = new JUser(); if (!$isNew) { $user->load($advertiser->user_id); } $this->assign("user", $user); $this->assign("advertiser", $advertiser); if (isset($_SESSION['ad_country'])) { $advertiser->country = $_SESSION['ad_country']; } $configs = $this->_models['adagencyconfig']->getConfigs(); if (isset($configs->show)) { $show = explode(";", $configs->show); } else { $show = NULL; } if (isset($configs->mandatory)) { $mandatory = explode(";", $configs->mandatory); } else { $mandatory = NULL; } if (count($show) >= 2) { unset($show[count($show) - 1]); } if (count($mandatory) >= 2) { unset($mandatory[count($mandatory) - 1]); } $configs->show = $show; $configs->mandatory = $mandatory; $country_option = $helper->get_country_options($advertiser, false, $configs); $lists['country_option'] = $country_option; $profile = new StdClass(); $profile->country = $advertiser->country; $profile->state = $advertiser->state; if (isset($_SESSION['ad_state']) && $_SESSION['ad_state'] != '') { $advertiser->state = $_SESSION['ad_state']; } $shipcountry_option = $helper->get_country_options($advertiser, true, $configs); $lists['shipcountry_options'] = $shipcountry_option; $lists['customerlocation'] = $helper->get_store_province($advertiser); $profile = new StdClass(); $profile->country = $advertiser->shipcountry; $profile->state = $advertiser->state; $lists['customershippinglocation'] = $helper->get_store_province($profile, true, $configs); //check for plugins $sqls = "SELECT count(*) FROM #__ad_agency_plugins"; $db->setQuery($sqls); $exists = $db->loadResult(); if (intval($exists) > 0) { $content = $this->_models['adagencyplugin']->getPluginOptions($advertiser->paywith); $lists['paywith'] = $content; } else { $lists['paywith'] = '<select name="payment_type"></select>'; $lists['paywith'] .= " Please upload payment plugins"; } //end check // Create status list if ($isNew) { $status_selected = 'Y'; } else { $status_selected = $advertiser->approved; } $sts_select = new StdClass(); $sts_select->status = JText::_("ADAG_SEL_STS"); $sts_select->value = ''; $sts_approve = new StdClass(); $sts_approve->status = JText::_("VIEWADVERTISERAPPROVED"); $sts_approve->value = "Y"; $sts_decline = new StdClass(); $sts_decline->status = JText::_("ADAG_DECLINED"); $sts_decline->value = "N"; $sts_pending = new StdClass(); $sts_pending->status = JText::_("ADAG_PENDING"); $sts_pending->value = 'P'; $statuses[] = $sts_select; $statuses[] = $sts_approve; $statuses[] = $sts_decline; $statuses[] = $sts_pending; $lists['approved'] = JHTML::_('select.genericlist', $statuses, 'approved', 'class="inputbox" size="1"', 'value', 'status', $status_selected); // if ($user->block=='1') $isenabled='0'; else $isenabled='1'; //$lists['enabled'] = JHTML::_('select.booleanlist', 'enabled', '', $isenabled ); $this->assign("lists", $lists); $this->assign("configs", $configs); parent::display($tpl); }
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.ijoomla.com # Technical Support: Forum - http://www.ijoomla.com/forum/index/ -------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); $orderid = $this->orderid; $nullDate = 0; $configs = $this->configs; $lists = $this->lists; require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; $document = JFactory::getDocument(); $document->addStyleSheet('components/com_adagency/css/joomla16.css'); $document->addStyleSheet(JURI::root() . "components/com_adagency/includes/css/adag_tip.css"); $helper = new adagencyAdminHelper(); include JPATH_BASE . "/components/com_adagency/includes/js/add_order.php"; ?> <form class="form-horizontal" method="post" id="adminForm" name="adminForm" enctype="multipart/form-data"> <div class="row-fluid"> <div class="span12 pull-right"> <h2 class="pub-page-title"> <?php echo JText::_('VIEWORDERSLICDET'); ?> </h2> </div> </div> <div class="control-group"> <label class="control-label"> <?php
/*------------------------------------------------------------------------ # com_adagency # ------------------------------------------------------------------------ # author iJoomla # copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.ijoomla.com # Technical Support: Forum - http://www.ijoomla.com/forum/index/ -------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); JHtml::_('behavior.framework', true); JHtml::_('behavior.calendar'); JHtml::_('behavior.modal', "a.modal2"); $helper = new adagencyAdminHelper(); $camp_row = $this->camp; $stats = $this->stats; $package_row = $this->package_row; $ban_row = $this->ban_row; $camps_ads = $this->camps_ads; $pack_id = NULL; $format = NULL; $cbrw = NULL; $bnrs = NULL; $awh = NULL; $pstatus = $this->pstatus; if (isset($ban_row) && is_array($ban_row)) { foreach ($ban_row as $el) { $cbrw[] = $el->id; }
$data = JRequest::get('post'); $chans = $this->chans; //echo "<pre>";var_dump($chans);die(); if (is_array($chans)) { $n = count($chans); } else { $n = 0; } $k = 0; $user = JFactory::getUser(); $listDirn = "asc"; $listOrder = "ordering"; $saveOrderingUrl = 'index.php?option=com_adagency&controller=adagencyGeo&task=saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'geochannels', 'adminForm', strtolower($listDirn), $saveOrderingUrl); JHtml::_('behavior.tooltip'); $helper = new adagencyAdminHelper(); ?> <form action="index.php" name="adminForm" id="adminForm" method="post"> <div class="row-fluid"> <div class="span12 pull-right"> <h2 class="pub-page-title"> <?php echo JText::_('ADAG_GEOCH'); ?> </h2> <a class="modal publisher-video pull-right" rel="{handler: 'iframe', size: {x: 750, y: 435}}" href="http://www.ijoomla.com/redirect/adserver/geo/channel.htm"> <img src="components/com_adagency/images/icon_video.gif" class="video_img" /> <?php echo JText::_("AD_VIDEO");
-------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); $k = 0; $n = count($this->advertisers); require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; $user = JFactory::getUser(); $listDirn = "asc"; $listOrder = "ordering"; $saveOrderingUrl = 'index.php?option=com_adagency&controller=adagencyAdvertisers&task=saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'advertiserlist', 'adminForm', strtolower($listDirn), $saveOrderingUrl); JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('dropdown.init'); JHtml::_('behavior.modal'); $helper = new adagencyAdminHelper(); $helperView = new adagencyAdminViewadagencyAdvertisers(); $loggeduser = JFactory::getUser(); ?> <script type="text/javascript"> Joomla.submitbutton = function(pressbutton){ if(pressbutton == "wizard"){ if(eval(document.getElementById("cb0")) && eval(document.getElementById("cb1"))){ document.getElementById("advertiser-light").style.display = ""; document.getElementById("light-modal-background").style.display = ""; return false; } } submitform(pressbutton); }
$adslim = (int) $camp_row->params['adslim']; } elseif ((!isset($camp_row->id) || $camp_row->id <= 0) && isset($configs->params['adslim'])) { $adslim = $configs->params['adslim']; } else { $adslim = 999; } $lists = $this->lists; $task = $this->task; // JHTML::_('behavior.modal'); // JHTML::_('behavior.mootools'); $document = JFactory::getDocument(); $document->addScript(JURI::root() . "components/com_adagency/includes/js/graybox.js"); $document->addStyleSheet('components/com_adagency/css/joomla16.css'); $document->addStyleSheet(JURI::root() . "components/com_adagency/includes/css/adag_tip.css"); require_once JPATH_BASE . DS . "components" . DS . "com_adagency" . DS . "helpers" . DS . "helper.php"; $helper = new adagencyAdminHelper(); $ymd = ""; $hms = ""; $ymd . ($hms = ""); switch ($configs->params['timeformat']) { case "0": $format_string = "Y-m-d H:i:s"; break; case "1": $format_string = "m/d/Y H:i:s"; break; case "2": $format_string = "d-m-Y H:i:s"; break; case "3": $format_string = "Y-m-d";