卓越飞翔博客卓越飞翔博客

卓越飞翔 - 您值得收藏的技术分享站
技术文章64334本站已运行4115

PHP anchor_popup函数代码示例

本文整理汇总了PHP中anchor_popup函数的典型用法代码示例。如果您正苦于以下问题:PHP anchor_popup函数的具体用法?PHP anchor_popup怎么用?PHP anchor_popup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了anchor_popup函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: index

function index($offset = 0, $order_column = 'SiteName', $order_type = 'asc')
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column = 'ShortName';
     }
     if (empty($order_type)) {
         $order_type = 'asc';
     }
     if (empty($filter)) {
         $filter = 0;
     }
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     //TODO: check for valid column
     // load data
     $filter = $this->input->post('ShortName');
     $Users = $this->viewclientinfomodel->get_paged_list($this->limit, $offset, $order_column, $order_type, $filter)->result();
     // generate pagination
     $config['base_url'] = site_url('/viewclientinfo/index');
     $config['total_rows'] = $this->viewclientinfomodel->count_all();
     $config['per_page'] = $this->limit;
     $config['uri_segment'] = 3;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['title'] = "Site Table";
     // generate table data
     $this->load->library('table');
     $this->table->set_empty("");
     $new_order = $order_type == 'asc' ? 'desc' : 'asc';
     $this->table->set_heading(anchor('viewclientinfo/index/' . $offset . '/ShortName/' . $new_order, 'Site Name'), anchor('viewclientinfo/index/' . $offset . '/Operator/' . $new_order, 'Operator'), anchor('viewclientinfo/index/' . $offset . '/HENumber/' . $new_order, 'HE'), anchor('viewclientinfo/index/' . $offset . '/Syscode/' . $new_order, 'Syscode'), 'Actions');
     $i = 0 + $offset;
     foreach ($Users as $Users) {
         $this->table->add_row($Users->ShortName, $Users->Operator, $Users->HENumber, $Users->SysCode, anchor_popup('viewclientinfo/update/' . $Users->ShortName, 'select', array('class' => 'update'), $upd));
         //.'   '.
         //anchor('viewclientinfo/delete/'.$Users->ShortName,'delete',array('class'=>'delete','onclick'=>"return confirm('Are you sure you want to remove this Client?')")))
         //;
     }
     $data['table'] = $this->table->generate();
     if ($this->uri->segment(3) == 'delete_success') {
         $data['message'] = 'The Data was successfully deleted';
     } else {
         if ($this->uri->segment(3) == 'add_success') {
             $data['message'] = 'The Data has been successfully added';
         } else {
             if ($this->uri->segment(3) == 'update_success') {
                 $data['message'] = 'The Data has been successfully updated';
             } else {
                 $data['message'] = '';
             }
         }
     }
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/viewclientinfo_view', $data);
     $this->load->view('pages/template/footer');
 }

示例2: convierte
 function convierte($par, $link)
 {
     $atts = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '5', 'screeny' => '5');
     switch ($par) {
         case '3I':
             return anchor_popup($link, 'Ventas Caja', $atts);
             break;
         case '3M':
             return anchor_popup($link, 'Ventas Mayor', $atts);
             break;
         case '1T':
             return anchor_popup($link, 'Transferencias', $atts);
             break;
         case '2C':
             return anchor_popup($link, 'Compras', $atts);
             break;
         case '4N':
             return anchor_popup($link, 'Nota/Entrega', $atts);
             break;
         case '6C':
             return 'Conversiones';
             break;
         case '5A':
             return 'Ajustes';
             break;
         case '0F':
             return 'Inventario';
             break;
         case '9F':
             return 'Inventario';
             break;
         default:
             return $par;
     }
 }

示例3: index
function index($offset = 0, $order_column = 'Username', $order_type = 'asc')
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column;
     }
     if (empty($order_type)) {
         $order_type = '';
     }
     $filter = $this->input->post('ShortName');
     $limit = 20;
     //$limit = $this->input->post('hours');
     //TODO: check for valid column
     // load data
     $Users = $this->manageusermodel->get_paged_list($limit, $offset, $order_column, $order_type, $filter)->result();
     // generate pagination
     $this->load->library('pagination');
     $config['base_url'] = site_url('/manageuserlist/index');
     $config['total_rows'] = $this->manageusermodel->count_all();
     $config['per_page'] = $limit;
     $config['uri_segment'] = 3;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['title'] = "Addige User Profile";
     $data['print_them'] = site_url('/manageuserlist/print_user');
     // generate table data
     $this->load->library('table');
     $this->table->set_empty("");
     $new_order = $order_type == 'asc' ? 'desc' : 'asc';
     $this->table->set_heading(anchor('manageuserlist/index/' . $offset . '/Username/' . $new_order, 'Username'), 'Operator', 'Rolename', 'Last Login', 'Actions', '');
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $i = 0 + $offset;
     foreach ($Users as $Users) {
         $this->table->add_row($Users->Username, $Users->Operator, $Users->Rolename, date("F j, Y, g:i a", strtotime($Users->LastActivityDate)), anchor_popup('manageuserlist/update/' . $Users->PKID, 'Update', array('class' => 'update')), anchor('manageuserlist/delete/' . $Users->PKID, 'Delete', array('class' => 'delete', 'onclick' => "return confirm('Are you sure you want to remove this User?')")));
     }
     $data['table'] = $this->table->generate();
     if ($this->uri->segment(3) == 'delete_success') {
         $data['message'] = 'The Data was successfully deleted';
     } else {
         if ($this->uri->segment(3) == 'add_success') {
             $data['message'] = 'The Data has been successfully added';
         } else {
             if ($this->uri->segment(3) == 'update_success') {
                 $data['message'] = 'The Data has been successfully updated';
             } else {
                 $data['message'] = '';
             }
         }
     }
     // load view
     $data['Role'] = $this->session->userdata('role');
     $atts = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $data['print_me'] = anchor_popup('/manageuserlist/print_user/', 'Print User List', array('class' => 'print_hello_world'), $atts);
     $this->load->view('pages/template/header');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/manageuserlist_view', $data);
     $this->load->view('pages/template/footer');
 }

示例4: index
function index($offset = 0, $order_column = 'Year', $order_type = 'desc')
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column = 'Year';
     }
     if (empty($order_type)) {
         $order_type = 'desc';
     }
     //TODO: check for valid column
     // load data
     $atts = array('width' => 800, 'height' => 600, 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => 0, 'screeny' => 0, 'window_name' => '_blank');
     $Users = $this->BillingSetInvoicingMonthMonthly_model->get_paged_list($this->limit, $offset, $order_column, $order_type)->result();
     // generate pagination
     $this->load->library('pagination');
     $config['base_url'] = site_url('/BillingSetInvoicingMonth/index');
     $config['total_rows'] = $this->BillingSetInvoicingMonthMonthly_model->count_all();
     $config['per_page'] = $this->limit;
     $config['uri_segment'] = 3;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['username'] = $this->session->userdata('username');
     $user1 = $data['username'];
     // generate table data
     $this->load->library('table');
     $this->table->set_empty("");
     $new_order = $order_type == 'asc' ? 'desc' : 'asc';
     $this->table->set_heading('Year', 'Month', 'Start Date', 'End Date', 'Action');
     $i = 0 + $offset;
     foreach ($Users as $Users) {
         $this->table->add_row($Users->Year, $Users->Month, $Users->Start_Date, $Users->End_Date, anchor_popup(array('BillingSetInvoicingMonthMonthly/update/' . $user1, $Users->Year, $Users->Month, $Users->Start_Date, $Users->End_Date), 'Select', array('class' => 'update'), $atts));
     }
     $data['currentuser'] = $this->session->userdata('username');
     $myuser = $data['currentuser'];
     $astartdate = $this->BillingSetInvoicingMonthMonthly_model->get_billingstartdate($myuser);
     $aenddate = $this->BillingSetInvoicingMonthMonthly_model->get_billingenddate($myuser);
     $cm = $this->BillingSetInvoicingMonthMonthly_model->get_currentmonth($myuser);
     $StartDate = date('Y-m-d', strtotime($astartdate));
     $EndDate = date('Y-m-d', strtotime($aenddate));
     $data['table'] = $this->table->generate();
     $data['title'] = 'Monthly Calendar';
     $data['title1'] = 'Current Month is: ' . $cm . " " . '(' . $StartDate . " " . "to" . " " . $EndDate . ")";
     if ($this->uri->segment(3) == 'delete_success') {
         $data['message'] = 'The Data was successfully deleted';
     } else {
         if ($this->uri->segment(3) == 'update_success') {
             $data['message'] = 'Invoicing Month Successfully Updated';
         } else {
             $data['message'] = '';
         }
     }
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/BillingSetInvoicingMonthList_view', $data);
     $this->load->view('pages/template/footer');
 }

示例5: filteredgrid
 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $atts = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $filter = new DataFilter("Filtro de Menu de Datasis", "tmenus");
     $filter->modulo = new inputField("Modulo", "modulo");
     $filter->modulo->db_name = 'modulo';
     $filter->modulo->size = 20;
     $filter->titulo = new inputField("Titulo", "titulo");
     $filter->titulo->size = 30;
     $filter->titulo->db_name = 'titulo';
     $filter->ejecutar = new inputField("Ejecutar", "ejecutar");
     $filter->ejecutar->size = 20;
     $filter->ejecutar->db_name = 'ejecutar';
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('supervisor/tmenus/dataedit/show/<#codigo#>', '<#modulo#>');
     $export = anchor('supervisor/tmenus/xmlexport', 'Exportar Data');
     $import = anchor_popup('cargasarch/cargaxml', 'Importar Data', $atts);
     $grid = new DataGrid("Lista de Menu de Datasis");
     $grid->order_by("modulo", "asc");
     $grid->per_page = 15;
     $grid->column("Modulo", $uri);
     $grid->column("Titulo", "titulo");
     $grid->column("Ejecutar", "ejecutar");
     $grid->add("supervisor/tmenus/dataedit/create");
     $grid->build();
     //echo $grid->db->last_query();
     $data['content'] = $filter->output . $export . '  ---->  ' . $import . '<form>' . $grid->output . '</form>';
     $data['title'] = "<h1>Menu del Sistema</h1>";
     $data["head"] = script("jquery.pack.js") . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }

示例6: index
function index()
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column = 'Seq';
     }
     if (empty($order_type)) {
         $order_type = 'asc';
     }
     $data['currentuser'] = $this->session->userdata('username');
     $myuser = $data['currentuser'];
     $astartdate = $this->generatebillingmodel->get_billingstartdate($myuser);
     $aenddate = $this->generatebillingmodel->get_billingenddate($myuser);
     $cm = $this->generatebillingmodel->get_currentmonth($myuser);
     $StartDate = date('Y-m-d', strtotime($astartdate));
     $EndDate = date('Y-m-d', strtotime($aenddate));
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $data['title1'] = 'Current Billing Period is: ' . $cm . " " . '(' . $StartDate . " " . "to" . " " . $EndDate . ")";
     $data['setbm'] = anchor_popup('BillingSetUpdate/index/', '(change)', array('class' => 'changebillingmonth'), $upd);
     $data['generatebill'] = anchor_popup(array('generatebilling/generatebill/' . $StartDate, $EndDate, $cm), '&#10152  Generate ', array('class' => 'generatebill'), $upd);
     //$data['filewrite'] =anchor(array('/generatebilling/writefile/'.$aStartDate,$aEndDate),'Here',array('class'=>'export'));
     $data['title'] = 'Generate Electronic Billing';
     //$data['title1'] = 'From '.$aStartDate.' to '.$aEndDate;
     //$data['sc'] = $syscode;
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header2');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/generatebilling_view', $data);
     $this->load->view('pages/template/footer');
 }

示例7: sub_menu
 function sub_menu($tabla = NULL)
 {
     if ($tabla != NULL) {
         if ($this->CI->datasis->essuper()) {
             $mSQL = "SELECT ejecutar, titulo, mensaje,target  FROM intramenu  WHERE  modulo LIKE '{$tabla}%' AND modulo<>'{$tabla}' ORDER BY titulo";
         } else {
             $mSQL = "SELECT ejecutar, titulo, mensaje,target  FROM intramenu  WHERE  modulo LIKE '{$tabla}%' AND modulo<>'{$tabla}' ORDER BY titulo";
         }
         $query = $this->CI->db->query($mSQL);
         $content['cant'] = $query->num_rows();
         if ($query->num_rows() > 0) {
             foreach ($query->result() as $row) {
                 $content["ejecutar"][] = $row->ejecutar;
                 $content["titulo"][] = $row->titulo;
                 $content["mensaje"][] = $row->mensaje;
                 if ($row->target == 'popu') {
                     $ejecutar = anchor_popup($row->ejecutar, $row->titulo, $att);
                 } elseif ($row->target == 'javascript') {
                     $ejecutar = "<a href='javascript:{$row->ejecutar}' title='{$row->titulo}'>{$row->titulo}</a> ";
                 } else {
                     $ejecutar = anchor($row->ejecutar, $row->titulo);
                 }
                 $content["link"][] = $ejecutar;
             }
         }
         return $this->CI->load->view('view_sub_menu', $content, TRUE);
     }
 }

示例8: index
 function index()
 {
     $data['action'] = site_url('billedset/index/');
     $data['currentuser'] = $this->session->userdata('username');
     $myuser = $data['currentuser'];
     $astartdate = $this->legacysetmodel->get_billingstartdate($myuser);
     $aenddate = $this->legacysetmodel->get_billingenddate($myuser);
     $cm = $this->legacysetmodel->get_currentmonth($myuser);
     $StartDate = date('Y-m-d', strtotime($astartdate));
     $EndDate = date('Y-m-d', strtotime($aenddate));
     $upd = array('width' => '1300', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     //Put the value in an array to pass to the view.
     //Pass to the value to the view. Access it as '$search' in the view.
     //$this->load->view("about", $view_data);
     $data['title1'] = 'Current Billing Period is: ' . $cm . " " . '(' . $StartDate . " " . "to" . " " . $EndDate . ")";
     //$data['setbm'] = anchor('BillingSetInvoicingMonth/index/'.$syscode,'(change)',array('class'=>'changebillingmonth'));
     $data['setbm'] = anchor_popup('BillingSetUpdate/index/', '(change)', array('class' => 'changebillingmonth'), $upd);
     //$data['createinvoice'] = anchor('legacyinvoicing/index/'.$syscode,'&#10152  Generate ',array('class'=>'createinvoice'));
     $data['createinvoice'] = anchor('billeddetail/index/', '&#10152  Generate ', array('class' => 'createinvoice'));
     $data['title'] = "Create Invoices / Logs";
     $data['title2'] = "Summary";
     // redirect('legacyinvoicing/index/'.$syscode,'Refresh');
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header2');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/billedset_view', $data);
     //$this->load->view('pages/template/footer');
 }

示例9: index
 function index()
 {
     if (empty($syscode)) {
         $syscode = null;
     }
     $syscode = $this->input->post('syscode');
     $data['action'] = site_url('generatebillingbycust/index/' . $syscode);
     $data['currentuser'] = $this->session->userdata('username');
     $myuser = $data['currentuser'];
     $astartdate = $this->generatebillingbycustmodel->get_billingstartdate($myuser);
     $aenddate = $this->generatebillingbycustmodel->get_billingenddate($myuser);
     $cm = $this->generatebillingbycustmodel->get_currentmonth($myuser);
     $StartDate = date('Y-m-d', strtotime($astartdate));
     $EndDate = date('Y-m-d', strtotime($aenddate));
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     //Put the value in an array to pass to the view.
     // $data['sc'] = "9129";
     $data['syscode'] = $syscode;
     //Pass to the value to the view. Access it as '$search' in the view.
     //$this->load->view("about", $view_data);
     $data['title1'] = 'Current Billing Period is: ' . $cm . " " . '(' . $StartDate . " " . "to" . " " . $EndDate . ")";
     $data['setbm'] = anchor_popup('BillingSetUpdate/index/', '(change)', array('class' => 'changebillingmonth'), $upd);
     if ($syscode == null) {
         $data['generatebill'] = "";
     } else {
         //$data['createinvoice'] = anchor('legacyinvoicing/index/'.$syscode,'&#10152  Generate ',array('class'=>'createinvoice'));
         $data['generatebill'] = anchor_popup(array('generatebillingbycust/generatebill/' . $syscode, $StartDate, $EndDate, $cm), '&#10152  Generate ', array('class' => 'generatebill'), $upd);
     }
     // redirect('legacyinvoicing/index/'.$syscode,'Refresh');
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header2');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/generatebillingbycust_view', $data);
 }

示例10: actions
private function actions($player)
 {
     $acts = "";
     $acts .= anchor("player/user/" . $player->Name, "<img src='/gtasa-mapicons/zoom.png' title='Detalles' width='18px' height='18px'/>");
     $acts .= anchor_popup("bans/ban/" . $player->Id, '<img src="/gtasa-mapicons/property_red.gif" title="Banear"/>');
     //$acts.=anchor("#",'<img src="/gtasa-mapicons/marker.gif"/>');
     return $acts;
 }

示例11: producto
 public function producto($producto = "no hay", $id = "ninguno")
 {
     echo ucfirst(urldecode($producto));
     echo "</BR>";
     echo ucfirst(urldecode($id));
     echo "</BR>";
     echo anchor_popup('http://google.com', 'Un buscador');
 }

示例12: index
function index($seq)
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column = 'Seq';
     }
     if (empty($order_type)) {
         $order_type = 'asc';
     }
     if (empty($filter)) {
         $filter = 0;
     }
     $currentuser = $this->session->userdata('username');
     $StartDate = $this->ebilldetailmodel->get_billingstartdate($currentuser);
     $EndDate = $this->ebilldetailmodel->get_billingenddate($currentuser);
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $filter = $this->input->post('Name');
     $Users = $this->ebilldetailmodel->get_contract_detail($seq)->result();
     // generate pagination
     $this->load->library('pagination');
     $config['base_url'] = site_url('/ebilldetail/index');
     //$config['total_rows'] = $this->ebilldetailmodel->count_all();
     //$config['total_rows'] = 2000;
     $config['total_rows'] = $this->ebilldetailmodel->count_all($seq);
     //$config['per_page'] = $this->limit;
     $config['per_page'] = 20;
     $config['uri_segment'] = 3;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['title'] = "Contracts for:  " . $this->ebilldetailmodel->get_customer_name($seq);
     $data['title1'] = 'Billing Date from ' . $StartDate . ' to ' . $EndDate;
     // generate table datav
     $this->load->library('table');
     $this->table->set_empty("");
     $new_order = $order_type == 'asc' ? 'desc' : 'asc';
     $this->table->set_heading('Contract', 'SysCode', 'SiteName', 'ContractName', 'StartDate', 'EndDate', 'Invoice', 'Spot Log');
     $i = 0 + $offset;
     $data['tblmsg'] = "";
     foreach ($Users as $Users) {
         if ($Users->c1Se == null) {
             $data['tblmsg'] = "No Contracts were found";
         } else {
             $this->table->add_row($Users->c1Se, $Users->c4S, $Users->c1SN, $Users->c1C, $Users->c1S, $Users->c1E, anchor_popup(array('invoicingprint/index/' . $Users->c1Se, $Users->c1S, $Users->c1E), 'Print Invoice', array('class' => 'print_preview'), $upd), anchor_popup(array('prtspotlog/index/' . $Users->c1Se, $Users->c1S, $Users->c1E), 'Print Log', array('class' => 'prtspotlog'), $upd));
             //anchor('selectsite/copy/'.$Users->SiteName,'Copy Entry',array('class'=>'copy') )
             //.'   '.
             //anchor('selectsite/delete/'.$Users->SiteName,'Delete',array('class'=>'delete','onclick'=>"return confirm('Are you sure you want to remove this Contract?')")))
         }
     }
     $data['table'] = $this->table->generate();
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/ebilldetail_view', $data);
     $this->load->view('pages/template/footer');
 }

示例13: index
function index($offset = 0, $order_column = 'SiteName', $order_type = 'asc')
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column = 'SiteName';
     }
     if (empty($order_type)) {
         $order_type = 'asc';
     }
     //TODO: check for valid column
     // load data
     $Users = $this->mappinglistupdatemodel->get_by_id($order_column)->result();
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $this->load->library('pagination');
     $config['base_url'] = site_url('/mappinglistupdate/index');
     $config['total_rows'] = $this->mappinglistupdatemodel->count_all();
     $config['per_page'] = $this->limit;
     $config['uri_segment'] = 3;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     // generate table data
     $this->load->library('table');
     $this->table->set_empty("");
     $new_order = $order_type == 'asc' ? 'desc' : 'asc';
     $this->table->set_heading(anchor('mappinglistupdate/index/' . $offset . '/Network/' . $new_order, 'Network'), anchor('mappinglistupdate/index/' . $offset . '/HENumber/' . $new_order, 'Head End'), anchor('mappinglistupdate/index/' . $offset . '/NetworkNum/' . $new_order, 'Network'), 'Actions');
     $i = 0 + $offset;
     foreach ($Users as $Users) {
         $this->table->add_row($Users->Network, $Users->HENumber, $Users->NetworkNum, anchor_popup(array('mappinglistupdate/update/' . $order_column, $Users->Network), 'update', array('class' => 'update'), $upd));
     }
     $data['table'] = $this->table->generate();
     if ($this->uri->segment(3) == 'delete_success') {
         $data['message'] = 'The Data was successfully deleted';
     } else {
         if ($this->uri->segment(3) == 'add_success') {
             $data['message'] = 'The Data has been successfully added';
         } else {
             if ($this->uri->segment(3) == 'update_success') {
                 $data['message'] = 'The Data has been successfully updated';
             } else {
                 $data['message'] = '';
             }
         }
     }
     $data['SiteName'] = $order_column;
     $data['link_back'] = anchor('mappinglist/index/', 'Back to Site List', array('class' => 'Back'));
     $data['add_network'] = anchor_popup('mappinglist/validate_add/', 'Add New Network', array('class' => 'AddNetwork'), $upd);
     //$data['SSID'] = $Users->SSID;
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/mappinglistupdate_view', $data);
     $this->load->view('pages/template/footer');
 }

示例14: index
function index($offset = 0, $order_column = 'Username', $order_type = 'asc')
 {
     if (empty($offset)) {
         $offset = 0;
     }
     if (empty($order_column)) {
         $order_column = 'Username';
     }
     if (empty($order_type)) {
         $order_type = 'asc';
     }
     //TODO: check for valid column
     // load data
     //Search
     $filter = $this->input->post('Description');
     $Users = $this->CueEntryModel->get_paged_list($this->limit, $offset, $order_column, $order_type, $filter)->result();
     $upd = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     // generate pagination
     $this->load->library('pagination');
     $config['base_url'] = site_url('/CueEntrylist/index');
     $config['total_rows'] = $this->CueEntryModel->count_all();
     $config['per_page'] = $this->limit;
     $config['uri_segment'] = 3;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     // generate table data
     $this->load->library('table');
     $this->table->set_empty("");
     $new_order = $order_type == 'asc' ? 'desc' : 'asc';
     $this->table->set_heading(anchor('CueEntrylist/index/' . $offset . '/Name/' . $new_order, 'Name'), anchor('CueEntrylist/index/' . $offset . '/Description/' . $new_order, 'Description'), anchor('CueEntrylist/index/' . $offset . '/Number/' . $new_order, 'Num'), anchor('CueEntrylist/index/' . $offset . '/TimeAvail' . $new_order, 'Sec/Hour'), anchor('CueEntrylist/index/' . $offset . '/NCCAlias/' . $new_order, 'Alias'), 'Action');
     $i = 0 + $offset;
     foreach ($Users as $Users) {
         $this->table->add_row($Users->Name, $Users->Description, $Users->Number, $Users->TimeAvail, $Users->NCCAlias, anchor_popup('CueEntrylist/update/' . $Users->Name, 'update', array('class' => 'update'), $upd) . '   ' . anchor('CueEntrylist/delete/' . $Users->Name, 'delete', array('class' => 'delete', 'onclick' => "return confirm('Are you sure you want to remove this Network?')")));
     }
     $data['table'] = $this->table->generate();
     if ($this->uri->segment(3) == 'delete_success') {
         $data['message'] = 'The Data was successfully deleted';
     } else {
         if ($this->uri->segment(3) == 'add_success') {
             $data['message'] = 'The Data has been successfully added';
         } else {
             if ($this->uri->segment(3) == 'update_success') {
                 $data['message'] = 'The Data has been successfully updated';
             } else {
                 $data['message'] = '';
             }
         }
     }
     $data['add_networklink'] = anchor_popup('CueEntrylist/validate_add/', 'Add New Network', array('class' => 'AddNetwork'), $upd);
     // load view
     $data['Role'] = $this->session->userdata('role');
     $this->load->view('pages/template/header');
     $this->load->view('pages/template/nav', $data);
     $this->load->view('pages/CueEntrylist_view', $data);
     $this->load->view('pages/template/footer');
 }

示例15: datafilter
 function datafilter()
 {
     $this->rapyd->set_connection('farmax');
     $this->rapyd->load_db();
     $this->rapyd->load("datagrid", "datafilter");
     $this->rapyd->uri->keep_persistence();
     $atts = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0');
     $modbus = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'C&oacute;digo Proveedor', 'nombre' => 'Nombre', 'rif' => 'RIF'), 'filtro' => array('proveed' => 'C&oacute;digo Proveedor', 'nombre' => 'Nombre'), 'retornar' => array('proveed' => 'proveed'), 'titulo' => 'Buscar Proveedor');
     $boton = $this->datasis->modbus($modbus);
     $filter = new DataFilter("Filtro de Compras");
     $filter->db->select = array('numero', 'fecha', 'vence', 'nombre', 'montoiva', 'montonet', 'proveed', 'control');
     $filter->db->from('scst');
     $filter->fechad = new dateonlyField("Desde", "fechad", 'd/m/Y');
     $filter->fechah = new dateonlyField("Hasta", "fechah", 'd/m/Y');
     $filter->fechad->clause = $filter->fechah->clause = "where";
     $filter->fechad->db_name = $filter->fechah->db_name = "fecha";
     $filter->fechah->size = $filter->fechad->size = 10;
     $filter->fechad->operator = ">=";
     $filter->fechah->operator = "<=";
     //$filter->fecha_recep = new dateonlyField("Fecha Recepci&oacute;n", "fecha",'d/m/Y');
     //$filter->fecha_recep->clause  =$filter->fecha->clause="where";
     //$filter->fecha_recep->db_name =$filter->fecha->db_name="recep";
     //$filter->fecha_recep->insertValue = date("Y-m-d");
     //$filter->fecha_recep->size=10;
     //$filter->fecha_recep->operator="=";
     //$filter->fechah->group="Fecha Recepci&oacute;n";
     //$filter->fechad->group="Fecha Recepci&oacute;n";
     $filter->numero = new inputField("Factura", "numero");
     $filter->numero->size = 20;
     $filter->proveedor = new inputField("Proveedor", "proveed");
     $filter->proveedor->append($boton);
     $filter->proveedor->db_name = "proveed";
     $filter->proveedor->size = 20;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('farmacia/scst/dataedit/show/<#control#>', '<#numero#>');
     $uri2 = anchor_popup('formatos/verhtml/COMPRA/<#control#>', "Ver HTML", $atts);
     $grid = new DataGrid();
     $grid->order_by("fecha", "desc");
     $grid->per_page = 15;
     $grid->column_orderby("Factura", $uri, 'control');
     $grid->column_orderby("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", 'fecha', "align='center'");
     $grid->column_orderby("Vence", "<dbdate_to_human><#vence#></dbdate_to_human>", 'vence', "align='center'");
     $grid->column_orderby("Nombre", "nombre", 'nombre');
     $grid->column_orderby("IVA", "montoiva", 'montoiva', "align='right'");
     $grid->column_orderby("Monto", "montonet", 'montonet', "align='right'");
     $grid->column_orderby("Control", 'pcontrol', 'pcontrol', "align='right'");
     $grid->add("compras/agregar");
     $grid->build();
     //echo $grid->db->last_query();
     $data['content'] = $filter->output . $grid->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = '<h1>Compras</h1>';
     $this->load->view('view_ventanas', $data);
 }

 
卓越飞翔博客
上一篇: PHP - 在新窗口中打开一个链接?
下一篇: 一段python 小代码, 求帮助 程序报错 SyntaxError: invalid syntax
留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏