public function display() { global $currentIndex; if (isset($_POST['submitAddattribute']) and sizeof($this->adminAttributes->_errors) or isset($_GET['updateattribute']) or isset($_GET['addattribute'])) { $this->adminAttributes->displayForm($this->token); echo '<br /><br /><a href="' . $currentIndex . '&token=' . $this->token . '"><img src="../img/admin/arrow2.gif" /> ' . $this->l('Back to list') . '</a><br />'; } else { parent::display(); } }
function display() { echo '<fieldset style="background-color:white !important; margin-bottom:25px !important;"><legend>' . $this->l('Manage Tags') . '</legend>'; parent::display(); echo '</fieldset>'; }
public function display() { global $currentIndex; if (!Tools::isSubmit('viewreferrer')) { echo $this->displayJavascript(); } if ($this->enableCalendar()) { echo ' <div style="float:left;margin-right:20px"> ' . AdminStatsTab::displayCalendarStatic(array('Calendar' => $this->l('Calendar'), 'Day' => $this->l('Today'), 'Month' => $this->l('Month'), 'Year' => $this->l('Year'), 'From' => $this->l('From'), 'To' => $this->l('To'))) . ' </div>'; if (!Tools::isSubmit('viewreferrer')) { echo ' <div style="float: left; margin-right: 20px;"> <fieldset style="width:630px"><legend><img src="../img/admin/tab-preferences.gif" /> ' . $this->l('Settings') . '</legend> <form action="' . $currentIndex . '&token=' . Tools::getValue('token') . '" method="post"> <label>' . $this->l('Save direct traffic') . '</label> <div class="float" style="margin-left: 200px;"> <label class="t" for="tracking_dt_on"><img src="../img/admin/enabled.gif" alt="' . $this->l('Yes') . '" title="' . $this->l('Yes') . '" /></label> <input type="radio" name="tracking_dt" id="tracking_dt_on" value="1" ' . ((int) Tools::getValue('tracking_dt', Configuration::get('TRACKING_DIRECT_TRAFFIC')) ? 'checked="checked"' : '') . ' /> <label class="t" for="tracking_dt_on"> ' . $this->l('Yes') . '</label> <label class="t" for="tracking_dt_off"><img src="../img/admin/disabled.gif" alt="' . $this->l('No') . '" title="' . $this->l('No') . '" style="margin-left: 10px;" /></label> <input type="radio" name="tracking_dt" id="tracking_dt_off" value="0" ' . (!(int) Tools::getValue('tracking_dt', Configuration::get('TRACKING_DIRECT_TRAFFIC')) ? 'checked="checked"' : '') . '/> <label class="t" for="tracking_dt_off"> ' . $this->l('No') . '</label> </div> <br class="clear" /> <p>' . $this->l('Direct traffic can be quite consuming. You should consider enabling it only if you have a strong database server and a strong need for it.') . '</p> <input type="submit" class="button" value="' . $this->l(' Save ') . '" name="submitSettings" /> </form> <hr /> <form action="' . $currentIndex . '&token=' . Tools::getValue('token') . '" method="post"> <p class="bold">' . $this->l('Indexation') . '</p> <p>' . $this->l('There is a huge quantity of data, so each connection corresponding to a referrer is indexed. You can refresh this index by clicking on the button below. Be aware that it may take a long time and it is only needed if you modified or added a referrer and if you want your changes to be retroactive.') . '</p> <input type="submit" class="button" value="' . $this->l('Refresh index') . '" name="submitRefreshIndex" /> </form> <hr /> <form action="' . $currentIndex . '&token=' . Tools::getValue('token') . '" method="post"> <p class="bold">' . $this->l('Cache') . '</p> <p>' . $this->l('For you to sort and filter your data, it is cached. You can refresh the cache by clicking on the button below.') . '</p> <input type="submit" class="button" value="' . $this->l('Refresh cache') . '" name="submitRefreshCache" /> </form> </fieldset> </div>'; } } echo '<div class="clear space"> </div>'; parent::display(); echo '<div class="clear space"> </div>'; }
public function display() { global $currentIndex, $cookie; $old_post = false; if (!isset($_GET['addstock_mvt_reason']) or Tools::isSubmit('submitAddstock_mvt_reason') and Tools::getValue('id_stock_mvt_reason')) { if (isset($_POST)) { $old_post = $_POST; } echo '<h2>' . $this->l('Stock movement history') . '</h2>'; parent::display(); if (!isset($_GET['view' . $this->table])) { echo ' <fieldset> <form method="post" action="' . $currentIndex . '&token=' . $this->token . '&rebuildMvt=1"> <label for="stock_rebuild">' . $this->l('Calculate the movement of inventory missing') . '</label> <div class="margin-form"> <input class="button" type="submit" name="rebuildStock" value="' . $this->l('Submit') . '" /> </div> </form> </fieldset><br />'; } } if (isset($_GET['view' . $this->table])) { return; } if ($old_post) { $_POST = $old_post; } $this->table = 'stock_mvt_reason'; $this->className = 'StockMvtReason'; $this->identifier = 'id_stock_mvt_reason'; $this->edit = true; $this->delete = true; $this->lang = true; $this->add = true; $this->view = false; $this->_listSkipDelete = array(1, 2, 3, 4); $this->_defaultOrderBy = $this->identifier; $this->fieldsDisplay = array('id_stock_mvt_reason' => array('title' => $this->l('ID'), 'width' => 40), 'sign' => array('title' => $this->l('Sign'), 'width' => 15, 'align' => 'center', 'type' => 'select', 'icon' => array(-1 => 'arrow_down.png', 1 => 'arrow_up.png'), 'orderby' => false), 'name' => array('title' => $this->l('Name'), 'width' => 500)); $reasons = StockMvtReason::getStockMvtReasons((int) $cookie->id_lang); $this->_fieldsOptions = array('PS_STOCK_MVT_REASON_DEFAULT' => array('title' => $this->l('Default Stock Movement reason:'), 'cast' => 'intval', 'type' => 'select', 'list' => $reasons, 'identifier' => 'id_stock_mvt_reason')); unset($this->_select, $this->_join, $this->_group, $this->_filterHaving, $this->_filter); echo '<h2>' . $this->l('Stock movement reason') . '</h2>'; $this->postProcess(); return parent::display(); }
public function display() { $this->warnDomainName(); parent::display(); }
public function display() { /* PrestaShop demo mode */ if (_PS_MODE_DEMO_) { $this->_errors[] = Tools::displayError('This functionnality has been disabled.'); return; } /* PrestaShop demo mode*/ parent::display(); }