public function merchant() { $this->data->brandname = getBrandName($this->session->userdata("store_id")); // violator notification data $this->data->show_notify_resource = 'true'; $this->data->smtp = $this->Store->get_store_smtp_by_store($this->store_id); $this->data->default_email_from = $this->Store->get_smtp_email($this->data->smtp); // get store information if ($this->store_id > 0) { $selected_store = $this->Store->get_store_track($this->store_id); $this->data->note_enable = $selected_store->note_enable; // Show merchant discussions on MAP Enforcement Page } $this->javascript('views/enforcement/merchant.js.php'); $this->javascript('views/enforcement/history.js.php'); $this->javascript('dynamic.js.php'); $this->javascript('jqwidgets/jqxdata.export.js'); $this->javascript('jqwidgets/jqxgrid.export.js'); // date picker $this->data->optArray = 1; $this->data->time_frame = 24; $this->data->date_from = ''; $this->data->date_to = ''; $this->data->display = '1'; $this->data->is_first = ''; }
<h3>Contact Information</h3> <div class="row_dat"> <div class="lbel"><label for="notify_email_from">From:</label></div> <div class="lbl_inpuCnt" style="width:300px"> <input type="email" id="notify_email_from" name="email_from" value="<?php echo !empty($violator_notification['email_from']) ? $violator_notification['email_from'] : $default_email_from; ?> " required="required" maxlength="255" title="The reply email." style="width:100%" /> </div> <div class="clear"></div> </div> <div class="row_dat"> <div class="lbel"><label for="notify_name_from">Company:</label></div> <div class="lbl_inpuCnt" style="width:300px"> <input type="text" id="notify_name_from" name="name_from" value="<?php echo !empty($violator_notification['name_from']) ? $violator_notification['email_from'] : getBrandName($this->session->userdata("merchant_store_id")); ?> " required="required" maxlength="255" title="Your company's name." style="width:100%" /> </div> <div class="clear"></div> </div> <div class="row_dat"> <div class="lbel"><label for="notify_phone">Phone #:</label></div> <div class="lbl_inpuCnt" style="width:300px"> <input type="tel" id="notify_phone" name="phone" value="<?php echo !empty($violator_notification['phone']) ? $violator_notification['phone'] : ''; ?> " required="required" maxlength="50" title="Your company's contact info." style="width:100%" /> </div> <div class="clear"></div> </div>
/** * Set user specific data used in every view */ protected function _store_view_vars() { if (empty($this->data)) { $this->data = new stdClass(); } $this->data->controller = $this->_controller; $this->data->method = $this->_method; if (!empty($this->allBrands)) { $this->data->brands = $this->allBrands; } $this->data->brandName = getBrandName($this->store_id); $this->data->store_id = intval($this->store_id); $this->data->team_members = autocomp_get_team_members($this->store_id, false); //$this->data->user_type = $this->user_type;//user.user_type value, but doesn't necessarily represent permissions $this->data->permission_id = $this->permission_id; //0=owner, 1=report, 2=admin $this->data->interact_script_id = $this->get_interact_script_id(); }