Esempio n. 1
0
 public function action_index($all = '', $order = '', $find = '', $idstr = '')
 {
     //        $customer = $this->model->getCustomer($_SESSION[customer_id]);
     //        $customer = $customer[customer];
     //        $this->title = empty($_SESSION[customer_id]) ? "Выберите заказчика" : "Заказчик - {$customer}";
     return parent::action_index($all, $order, $find, $idstr);
 }
Esempio n. 2
0
 public function action_index($all = '', $order = '', $find = '', $idstr = '')
 {
     $tovar = $this->model->getTovar($_SESSION[Auth::$lss][tovarid]);
     $ost = $this->model->getOst($_SESSION[Auth::$lss][tovarid]);
     $ost = $ost[ost];
     $edizm = $tovar[edizm];
     $nazv = $tovar[nazv];
     $this->title = empty($_SESSION[Auth::$lss][tovarid]) ? "" : "Движения - {$nazv} - остаток - {$ost} {$edizm}";
     return parent::action_index($all, $order, $find, $idstr);
 }
Esempio n. 3
0
 public function action_index($all = '', $order = '', $find = '', $idstr = '')
 {
     extract($_SESSION[Auth::$lss]);
     $customer = $this->model->getCustomer($customer_id);
     $customer = $customer[customer];
     $orderarr = $this->model->getOrder($order_id);
     $date = $orderarr[orderdate];
     $orderstr = $orderarr[number];
     $this->title = empty($customer_id) ? "" : "Заказчик - {$customer} ";
     $this->title .= empty($order_id) ? "" : "Заказ - {$orderstr} от {$date} ";
     return parent::action_index($all, $order, $find, $idstr);
 }
Esempio n. 4
0
 public function action_index($all = '', $order = '', $find = '', $idstr = '')
 {
     $data[dates] = $this->model->getDates();
     $idstr = empty($_REQUEST[ddate]) ? $data[dates][0][ddate] : $_REQUEST[ddate];
     $data[ddate] = $idstr;
     $this->title = $this->view->getTitle($data);
     $out = '';
     $out .= '<form class="lego" name=requestform action="' . $this->actUri('print')->ajaxurl($this->getName()) . '" >';
     $this->findbutton = false;
     $out .= parent::action_index($all, $order, $find, $idstr);
     $out .= '</form>';
     //$out .= $this->getHeaderBlock();
     return $out;
 }
Esempio n. 5
0
 public function action_index($all = '', $order = '', $find = '', $idstr = '')
 {
     $month = $_REQUEST[selectmonth];
     $sdate = $_REQUEST[sdate];
     $edate = $_REQUEST[edate];
     $idstr = !empty($month) ? "month:{$month}" : (!empty($sdate) ? "range:{$sdate}:{$edate}" : '');
     $this->title = "";
     if (empty($idstr) || !empty($month)) {
         $this->title .= '<form method=get action=' . $this->actUri('index')->url() . ' name="monthform">';
         $this->title .= 'Отчет за месяц:<select id=month name=selectmonth>';
         $res = $this->model->getMonths();
         foreach ($res as $rs) {
             $this->title .= "<option value=" . ($rs["dmonth"] * 10000 + $rs["dyear"]) . " " . (floor($month / 10000) == $rs["dmonth"] && $month % 10000 == $rs["dyear"] ? "SELECTED" : "") . ">" . sprintf("%02d", $rs["dmonth"]) . "-" . $rs["dyear"] . "</option>";
         }
         $this->title .= "</select><input type=button id=monthbutton class='noprint' value='Отчет'></form>";
     }
     if (empty($idstr) || !empty($sdate)) {
         if (empty($sdate)) {
             $sdate = date("d.m.Y");
         }
         if (empty($edate)) {
             $edate = date("d.m.Y");
         }
         $this->title .= "<form method=get name=peroidreport id=form_peroidreport action='" . $this->actUri('index')->url() . "'>";
         $this->title .= "Отчет за период: с ";
         $this->title .= "<input size=10 datepicker=1  name='sdate' value='{$sdate}' type=text >";
         $this->title .= " по ";
         $this->title .= "<input size=10 datepicker=1 name='edate' value='{$edate}' type=text >";
         $this->title .= "<input type=button id=rangebutton class='noprint' value='Отчет'>";
         $this->title .= "</form>";
     }
     if (!empty($idstr)) {
         $this->title .= '<input type="button" class="noprint" value="Скопировать для  excel" id="copytable" onclick="copytable();$(\'#copytable\').val(\'Готово\')">';
     }
     //$this->title.= $this->getHeaderBlock();
     return parent::action_index($all, $order, $find, $idstr);
 }