• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP style函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中style函数的典型用法代码示例。如果您正苦于以下问题:PHP style函数的具体用法?PHP style怎么用?PHP style使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了style函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: crearpago

 function crearpago($sprv)
 {
     $mSQL = "SELECT tipo_doc,numero,fecha,monto,abonos FROM sprm WHERE cod_prv='{$sprv}' AND monto>abonos";
     $query = $this->db->query($mSQL);
     $pjson = array();
     $aplicables = $pagables = array();
     if ($query->num_rows() > 0) {
         foreach ($query->result_array() as $row) {
             if (eregi('^(FC|GI|ND)$', $row['tipo_doc'])) {
                 $row['fecha'] = str_replace('-', '', $row['fecha']);
                 $pagables[] = $row;
                 $id = $row['tipo_doc'] . $row['numero'] . $row['fecha'];
                 $pjson[$id] = $row['monto'] - $row['abonos'];
             } else {
                 $aplicables[] = $row;
             }
         }
     }
     $ddata = array('pagables' => $pagables, 'aplicables' => $aplicables);
     $ddata['link'] = site_url('compras/sprm/procesapago');
     $ddata['sprv'] = $sprv;
     $ddata['pjson'] = json_encode($pjson);
     $proveed = $this->datasis->dameval("SELECT nombre FROM sprv WHERE proveed='{$sprv}'");
     $data['title'] = "<h1>Realizar pago a ({$sprv}) {$proveed}</h1>";
     $data["head"] = style('proteo/proteo.css') . script('jquery.js') . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . script('jquery-ui.js');
     $data['content'] = $this->load->view('view_sprm', $ddata, true);
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:28,代码来源:sprm.php


示例2: edit

 /**
  * 修改公告
  */
 public function edit()
 {
     $id = intval($GLOBALS['id']);
     if (isset($GLOBALS['submit'])) {
         $formdata = $GLOBALS['form'];
         $formdata['title'] = remove_xss($formdata['title']);
         $formdata['note'] = remove_xss($formdata['note']);
         $formdata['addtime'] = SYS_TIME;
         $formdata['endtime'] = strtotime($GLOBALS['endtime']);
         $formdata['publisher'] = get_cookie('username');
         $formdata['css'] = 'color:#' . remove_xss(ltrim($GLOBALS['title_css'], '#') . ';' . $GLOBALS['font_weight']);
         $linkageid = $this->db->update('affiche', $formdata, array('id' => $id));
         MSG(L('operation success'), '?m=affiche&f=index&v=listing' . $this->su());
     } else {
         $show_formjs = 1;
         $form = load_class('form');
         load_function('admin');
         $endtime = SYS_TIME + 86400 * 30;
         $endtime = date('Y-m-d');
         $r = $this->db->get_one('affiche', array('id' => $id));
         $styles = style($r['css']);
         //color:#ff0000;font-weight:bold
         $font_weight = $styles['font-weight'];
         $color = $styles['color'];
         include $this->template('edit');
     }
 }
开发者ID:another3000,项目名称:wuzhicms,代码行数:30,代码来源:index.php


示例3: centinelas

 function centinelas()
 {
     $this->load->helper('directory');
     $this->load->library('table');
     $tmpl = array('row_start' => '<tr valign="top">');
     $this->table->set_template($tmpl);
     $map = directory_map('./system/logs/');
     $lista = array();
     foreach ($map as $file) {
         if ($file != 'index.html') {
             $lista[] = anchor("supervisor/mantenimiento/borracentinela/{$file}", 'X') . " <a href='javascript:void(0)' onclick=\"carga('{$file}')\" >{$file}</a>";
         }
     }
     $copy = "<br><a href='javascript:void(0)' class='mininegro'  onclick=\"copiar()\" >Copiar texto</a>";
     $tadata = array('name' => 'sql', 'id' => 'log', 'rows' => '20', 'cols' => '60');
     $form = form_open('ejecutasql/filteredgrid/process') . form_textarea($tadata) . '<br>' . form_submit('mysubmit', 'Ejecutar como SQL') . form_close();
     $this->table->add_row(ul($lista), '<b id="fnom">Seleccione un archivo de centinela</b><br>' . $form);
     $link = site_url('supervisor/mantenimiento/vercentinela');
     $data['script'] = "<script>\n\t\t  function carga(arch){\n\t\t    link='{$link}'+'/'+arch;\n\t\t    //alert(link);\n\t\t    \$('#fnom').text(arch);\n\t\t    \$('#log').load(link);\n\t\t  };\n\t\t  function copiar(){\n\t\t    \$('#log').copy();\n\t\t  };\n\t\t</script>";
     $data['content'] = $this->table->generate();
     $data['title'] = " Centinelas ";
     //script('plugins/jquery.clipboard.pack.js')
     $data["head"] = script("jquery.pack.js") . script('plugins/jquery.copy.min.js') . $this->rapyd->get_head() . style('marcos.css') . style('estilos.css');
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:25,代码来源:mantenimiento.php


示例4: ver

 function ver($id = NULL)
 {
     $this->rapyd->load("datatable");
     $table = new DataTable(null);
     $table->cell_attributes = 'style="vertical-align:middle;"';
     $select = array("envia", "mensaje", "recibe");
     $table->db->select($select);
     $table->db->from("muro");
     $table->db->where("recibe='Todos'");
     $table->db->orderby("codigo DESC");
     $table->per_row = 1;
     $table->per_page = 20;
     $table->cell_template = "<div class='marco1' ><#mensaje#><br><b class='mininegro'>Usuario: <#envia#></b></div><br>";
     $table->build();
     if ($this->datasis->login()) {
         $prop = array('type' => 'button', 'value' => 'Agregar', 'name' => 'mas', 'onclick' => "javascript:window.location='" . site_url("supervisor/noticias/dataedit/create") . "'");
         $form = form_input($prop);
     } else {
         $form = '';
     }
     $data['content'] = $table->output . $form;
     $data["head"] = $this->rapyd->get_head() . style('marcos.css') . style('estilos.css');
     $data['title'] = " Noticias ";
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:25,代码来源:noticias.php


示例5: index

 function index()
 {
     $data = array();
     $data['header'] = '';
     $data['content'] = $this->load->view('view_verificador', $data, true);
     $data['footer'] = '';
     $data['script'] = script('jquery-min.js');
     $data['script'] .= phpscript('nformat.js');
     $data['script'] .= script('jquery.bootgrid.min.js');
     $data['style'] = style('jquery.bootgrid.min.css');
     $data['panel'] = '';
     $data['title'] = heading('Verificador de precios');
     $this->load->view('view_ventanasjq', $data);
     /*
     		// Filter grid
     		$this->rapyd->load('datafilter','datagrid');
     		$filter = new DataFilter('Consulta de Precios', 'sinv');
     
     		$filter->Descripcion = new inputField('Descripcion','decrip');
     		$filter->clave->rule      ='max_length[50]';
     		$filter->clave->size      =7;
     		$filter->clave->maxlength =5;
     
     		$filter->marca = new inputField('Marca','marca');
     		$filter->marca->rule      ='max_length[30]';
     		$filter->marca->size      =32;
     		$filter->marca->maxlength =30;
     
     		$filter->buttons('reset', 'search');
     		$filter->build();
     
     		$uri = anchor($this->url.'dataedit/show/<raencode><#id#></raencode>','<#id#>');
     
     		$grid = new DataGrid('');
     		$grid->db->select('codigo', 'descrip','unidad','base1','precio1-base1 iva','precio1');
     		$grid->db->order_by('codigo');
     
     		$grid->db->order_by('codigo');
     		$grid->per_page = 40;
     
     		$grid->column_orderby('C&oacute;digo'   ,'codigo'  ,'codigo',  'align="left"');
     		$grid->column_orderby('Descripcion'     ,'nombre'  ,'descrip', 'align="left"');
     		$grid->column_orderby('Medida'          ,'unidad'  ,'unidad',  'align="left"');
     		$grid->column_orderby('Precio'          ,'base1'   ,'base1',   'align="right"');
     		$grid->column_orderby('I.V.A.'          ,'iva'     ,'iva',     'align="right"');
     		$grid->column_orderby('Precio de Venta' ,'precio1' ,'precio1', 'align="right"');
     
     		$grid->add($this->url.'dataedit/create');
     		$grid->build();
     
     		$data['filtro']  = $filter->output;
     		$data['content'] = $grid->output;
     		$data['head']    = $this->rapyd->get_head().script('jquery.min.js');
     		$data['title']   = heading($this->titp);
     		$this->load->view('view_ventanas', $data);
     */
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:57,代码来源:verificador.php


示例6: index

    function index()
    {
        $this->rapyd->load('dataform');
        $lscst = site_url('compras/scst/autocomplete/control');
        $script = '
		function formato(row) {
			return row[0]+" "+row[1]+" "+row[3];
		}

		$(function() {
			$("#control").autocomplete("' . $lscst . '",{
				delay:10,
				//minChars:2,
				matchSubset:1,
				matchContains:1,
				cacheLength:10,
				formatItem:formato,
				width:450,
				autoFill:true
				}
			);
		});';
        $form = new DataForm($this->url . 'index/process');
        $form->title('Pasar precios a cajas');
        $form->script($script);
        $form->control = new inputField('Control de compra', 'control');
        $form->control->rule = 'required|callback_chcontrol';
        $form->control->size = 12;
        $form->control->maxlength = 10;
        $form->control->append('Dejar vacio para enviar un masivo');
        $form->submit("btnsubmit", "Pasar precios a caja");
        $form->build_form();
        $error = '';
        if ($form->on_success()) {
            $control = $form->control->newValue;
            $usr = $this->session->userdata('usuario');
            $join = '';
            if (strlen($control > 0)) {
                $join = 'JOIN `itscst` AS b ON a.codigo=b.codigo AND b.codigo=' . $this->db->escape($control);
            }
            $mSQL = "INSERT INTO `enviapos` (codigo,numero,precio1,fecha,hora,usuario)\n\t\t\t\t  SELECT a.codigo,'INVENTAR',a.precio1,CURDATE(),CURTIME(),'{$usr}' FROM `maes` AS a {$join}";
            $ban = $this->db->simple_query($mSQL);
            if (!$ban) {
                $error .= "Hubo problemas al pasar los precios, comuniquese con servicio t&eacute;cnico";
                memowrite($mSQL, 'ENVIACAJA');
            } else {
                logusu('ENVIACAJA', "Fue enviado una actualizacion de precios");
            }
        }
        $data['content'] = "<div class='alert'>{$error}</div>";
        $data['content'] .= $form->output;
        $data['title'] = '<h1>Env&iacute;o de precios para las cajas</h1>';
        $data["head"] = script('jquery.pack.js') . script('plugins/jquery.autocomplete.js') . style('jquery.autocomplete.css') . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
开发者ID:codethics,项目名称:proteoerp,代码行数:55,代码来源:enviacaja.php


示例7: code

function code($var)
{
    style();
    echo '<pre class="code_helper">';
    if (is_array($var) || is_object($var)) {
        print_r($var);
    } else {
        echo $var;
    }
    echo '</pre>';
}
开发者ID:raphaelportland,项目名称:xiajob2,代码行数:11,代码来源:code_helper.php


示例8: style

/**
 * 样式别名加载(支持批量加载)
 * @param  string|array $aliases    配置文件中的别名
 * @param  array        $attributes 标签中需要加入的其它参数的数组
 * @return string
 */
function style($aliases, $attributes = array(), $interim = '')
{
    if (is_array($aliases)) {
        foreach ($aliases as $k => $v) {
            $interim .= is_int($k) ? style($v, $attributes, $interim) : style($k, $v, $interim);
        }
        return $interim;
    }
    $cssAliases = Config::get('extend.webAssets.cssAliases');
    $url = isset($cssAliases[$aliases]) ? $cssAliases[$aliases] : $aliases;
    return HTML::style($url, $attributes);
}
开发者ID:ningcaichen,项目名称:laravel-4.1-quick-start-cn,代码行数:18,代码来源:functions.php


示例9: renderBody

 /**
  * Render response body
  *
  * @param  array      $env
  * @param  \Exception $exception
  * @return string
  */
 public function renderBody(&$env, $exception)
 {
     $title = 'Slimore Application ErrorException';
     $code = $exception->getCode();
     $message = $exception->getMessage();
     $file = $exception->getFile();
     $line = $exception->getLine();
     $type = get_class($exception);
     $trace = str_replace(array('#', "\n"), array('<div class="trace-line">#', '</div>'), $exception->getTraceAsString());
     $html = html($title, ['<meta http-equiv="X-UA-Compatible" content="IE=edge" />', '<meta name="renderer" content="webkit" />', '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />', style(['*{margin:0;padding:0;}', 'html {font-size: 62.5%;}', 'html, body {max-width: 100%;width: 100%;}', 'body {font-size: 1.4rem;font-family: "Microsoft Yahei", Helvetica, Tahoma, STXihei, arial,verdana,sans-serif;background:#fff;color:#555;}', 'img {border: none;}', 'pre, pre code {font-family:Consolas, arial,verdana,sans-serif;}', '#layout {padding: 6rem;}', '#main {margin: 0 auto;line-height: 1.5;}', '#main > h1 {font-size: 10rem;margin-bottom: 1rem;}', '#main > h3 {margin-bottom: 2rem; font-size: 1.8rem;}', '#main > h4 {margin-bottom: 1rem; font-size: 1.8rem;}', '#main pre {margin: 1.5rem 0;white-space: pre-wrap;word-wrap: break-word;}', '#main > p {white-space: pre-wrap;word-wrap: break-word;line-height: 1.3;margin-bottom: 0.6rem;}', '#main > p > strong {width: 7rem;display:inline-block;}', '.logo {text-align: left;border-top:1px solid #eee;margin-top: 5rem;padding: 3rem 0 0;color: #ccc;}', '.logo > h1 {font-weight: normal;font-size: 5rem;}', '.logo img {margin-left: -2rem;}', '.trace-line {padding: 0.3rem 0.6rem;margin-left:-0.6rem;-webkit-transition: background-color 300ms ease-out;transition: background-color 300ms ease-out;}', '.trace-line:hover {background:#fffccc;}'])], ['<div id="layout">', '<div id="main">', '<h1>:(</h1>', '<h3>' . $type . '</h3>', '<h4>Details :</h4>', '<p><strong>Type: </strong> ' . $type . '</p>', '<p><strong>Message: </strong> ' . $message . '</p>', '<p><strong>File: </strong> ' . $file . '</p>', '<p><strong>Line: </strong> ' . $line . '</p>', '<br/>', '<h4>Trace:</h4>', '<pre>' . $trace . '</pre>', '<div class="logo">', '<h1>Slimore</h1>', '<p>The fully (H)MVC framework, based on the Slim PHP Framwork.</p>', '</div>', '</div>', '</div>']);
     return $html;
 }
开发者ID:im286er,项目名称:slimore,代码行数:19,代码来源:Exceptions.php


示例10: index

 function index()
 {
     $list = array();
     $list[] = anchor('doc/modulos', 'Modulos documentados');
     $list[] = anchor('doc/tablas', 'Tablas documentadas');
     $attributes = array('class' => 'boldlist', 'id' => 'mylist');
     $out = ul($list, $attributes);
     $data['content'] = $out;
     $data["head"] = script("jquery.pack.js") . script("jquery.treeview.pack.js") . $this->rapyd->get_head() . style('jquery.treeview.css');
     $data['title'] = '<h1>Documentaci&oacute;n</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:12,代码来源:docu.php


示例11: index

 function index()
 {
     $out = '<table aling=\'center\' cellpadding=\'10\'><tr>';
     foreach ($this->ser as $ind => $val) {
         $image_properties = array('src' => 'images/server.png', 'alt' => $val['titu'], 'border' => 0, 'title' => $val['titu']);
         $out .= '<td><a href="' . site_url('supervisor/monitoreo/monitor/' . $ind) . '">' . img($image_properties) . '</a>' . br() . $val['titu'] . '</td>';
     }
     $out .= '</tr></table>';
     $data['content'] = $out;
     $data['head'] = script('jquery.pack.js') . script('jquery.treeview.pack.js') . style('jquery.treeview.css');
     $data['title'] = '<h1>Equipos monitoreables</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:13,代码来源:monitoreo.php


示例12: ingresarVentana

 function ingresarVentana()
 {
     $viene = $this->session->userdata('estaba');
     $data['estilos'] = style("estilos.css");
     $attributes = array('name' => 'ingresar_form');
     $data['cuerpo'] = form_open('bienvenido/autentificar', $attributes);
     $attributes = array('name' => 'user', 'size' => '6');
     $data['cuerpo'] .= '<table><tr><td>Usuario: </td><td>' . form_input($attributes) . '</td></tr>';
     $attributes = array('name' => 'pws', 'size' => '6', 'type' => 'password');
     $data['cuerpo'] .= '<tr><td> Clave:  </td><td>' . form_input($attributes) . '</td></tr>';
     $data['cuerpo'] .= '<tr><td></td><td>' . form_submit('usr_submit', 'Enviar') . form_close() . '</td></tr></table>';
     // Build the thing
     $this->load->view('ingreso', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:14,代码来源:bienvenido.php


示例13: index

    function index()
    {
        $this->rapyd->load("datagrid", "datafilter");
        //echo $grid->db->last_query();
        $data['script'] = "<script type='text/javascript'>\n\t\t\t\$(function(){\n\n\t\t\t\t// Accordion\n\t\t\t\t\$('#accordion').accordion({ header: 'h3' });\n\t\n\t\t\t\t// Tabs\n\t\t\t\t\$('#tabs').tabs();\n\t\n\n\t\t\t\t// Dialog\t\t\t\n\t\t\t\t\$('#dialog').dialog({\n\t\t\t\t\tautoOpen: true,\n\t\t\t\t\twidth: 600,\n\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t'Aceptar': function() { \n\t\t\t\t\t\t\t\$(this).dialog('close'); \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// Dialog Link\n\t\t\t\t\$('#dialog_link').click(function(){\n\t\t\t\t\t\$('#dialog').dialog('open');\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\n\t\t\t\t// Datepicker\n\t\t\t\t\$('#datepicker').datepicker({\n\t\t\t\t\tinline: true\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// Slider\n\t\t\t\t\$('#slider').slider({\n\t\t\t\t\trange: true,\n\t\t\t\t\tvalues: [17, 67]\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// Progressbar\n\t\t\t\t\$('#progressbar').progressbar({\n\t\t\t\t\tvalue: 20 \n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t//hover states on the static widgets\n\t\t\t\t\$('#dialog_link, ul#icons li').hover(\n\t\t\t\t\tfunction() { \$(this).addClass('ui-state-hover'); }, \n\t\t\t\t\tfunction() { \$(this).removeClass('ui-state-hover'); }\n\t\t\t\t);\n\t\t\t\t\n\t\t\t});\n\t\t</script>";
        $ddata = array('name' => 'cliente', 'id' => 'cliente', 'value' => '', 'maxlength' => '100', 'size' => '50');
        $data['content'] = '<!-- ui-dialog -->
		<div id="dialog" title="Nombre">
			<p><center><h2>Hagase usted mismo su presupuesto!</h2> Ingrese su nombre en el siguiente campo y siga las instrucciones' . form_input($ddata) . '</center></p>
		</div>';
        //$data['content'] ='';
        $data["head"] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . style('verde/jquery-ui.css');
        $data['title'] = '<h1>Autoservicio</h1>';
        $this->load->view('view_ventanas_sola', $data);
    }
开发者ID:codethics,项目名称:proteoerp,代码行数:15,代码来源:autoservicio.php


示例14: margenes

 function margenes()
 {
     $this->rapyd->load("dataedit", "dataform");
     $script = '
             <script language="javascript" type="text/javascript">
             $(function(){
                     $(".inputnum").numeric(".");
             });
             </script>
             ';
     $form = new DataForm("inventario/margenes_sinv/margenes/modifica");
     $form->margen1 = new inputField2("Magen1", "margen1");
     $form->margen1->size = 10;
     $form->margen1->maxlength = 8;
     $form->margen1->css_class = 'inputnum';
     $form->margen1->rule = 'required|callback_chporcent';
     $form->margen2 = new inputField2("Magen2", "margen2");
     $form->margen2->size = 10;
     $form->margen2->maxlength = 8;
     $form->margen2->css_class = 'inputnum';
     $form->margen2->rule = 'required|callback_chporcent';
     $form->margen3 = new inputField2("Magen3", "margen3");
     $form->margen3->size = 10;
     $form->margen3->maxlength = 8;
     $form->margen3->css_class = 'inputnum';
     $form->margen3->rule = 'required|callback_chporcent';
     $form->margen4 = new inputField2("Magen4", "margen4");
     $form->margen4->size = 10;
     $form->margen4->maxlength = 8;
     $form->margen4->css_class = 'inputnum';
     $form->margen4->rule = 'required|callback_chporcent';
     $form->submit("btnsubmit", "MODIFICAR");
     $form->build_form();
     if ($form->on_success()) {
         set_time_limit(600);
         $margen1 = $_POST['margen1'];
         $margen2 = $_POST['margen2'];
         $margen3 = $_POST['margen3'];
         $margen4 = $_POST['margen4'];
         redirect("inventario/margenes_sinv/modifica/{$margen1}/{$margen2}/{$margen3}/{$margen4}");
         //$this->procesa();
     }
     $data['content'] = $form->output;
     $data['head'] = script('jquery.js') . script('jquery-ui.js') . script("plugins/jquery.numeric.pack.js") . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head() . $script;
     $data['title'] = '<h1>Cambiar Margenes</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:47,代码来源:margenes_sinv.php


示例15: index

    function index()
    {
        $data['script'] = '<script type="text/javascript">
		$(function() {
			$("#tree").treeview({
				collapsed: true,
				animated: "medium",
				control:"#sidetreecontrol",
				persist: "location"
			});
		})
		</script>';
        $data['content'] = '<div id="sidetreecontrol"><a href="?#">Contraer todos</a> | <a href="?#">Expandir todos</a> | <a href="?#">Invertir </a></div>' . $out;
        $data['head'] = script("jquery.pack.js") . script("jquery.treeview.pack.js") . $this->rapyd->get_head() . style('jquery.treeview.css');
        $data['title'] = '<h1>Administraci&oacute;n del Men&uacute;</h1>';
        $this->load->view('view_ventanas', $data);
    }
开发者ID:codethics,项目名称:proteoerp,代码行数:17,代码来源:accesos.php


示例16: index

    function index()
    {
        /*SELECT a.modulo,a.titulo, IFNULL(b.acceso,'N')
        FROM intramenu AS a
        LEFT JOIN intrasida AS b ON a.modulo=b.modulo AND b.usuario='321'
        WHERE MID(a.modulo,1,1)!=0 ORDER BY a.modulo, a.panel*/
        $data['script'] = '<script type="text/javascript">
		$(function() {
			$("#tree").treeview({
				collapsed: true,
				animated: "medium",
				control:"#sidetreecontrol",
				persist: "location"
			});
		})
		</script>';
        $data['content'] = '<div id="sidetreecontrol"><a href="?#">Contraer todos</a> | <a href="?#">Expandir todos</a> | <a href="?#">Invertir </a></div>' . $out;
        $data["head"] = script("jquery.pack.js") . script("jquery.treeview.pack.js") . $this->rapyd->get_head() . style('jquery.treeview.css');
        $data['title'] = '<h1>Administraci&oacute;n del Men&uacute;</h1>';
        $this->load->view('view_ventanas', $data);
    }
开发者ID:codethics,项目名称:proteoerp,代码行数:21,代码来源:accesos.php


示例17: dataedit

    function dataedit()
    {
        $this->rapyd->load('dataobject', 'dataedit');
        $script = '
			$(document).ready(function(){
				$(".inputnum").numeric(".");
			});
			';
        $do = new DataObject('utribu');
        $edit = new DataEdit($this->tits, $do);
        $edit->back_url = site_url($this->url . "filteredgrid");
        $edit->script($script, 'create');
        $edit->script($script, 'modify');
        $edit->pre_process('insert', '_valida');
        $edit->pre_process('update', '_valida');
        $edit->pre_process('delete', '_pre_delete');
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->ano = new inputField('Ano', 'ano');
        $edit->ano->rule = 'trim|required|numeric';
        $edit->ano->size = 12;
        $edit->ano->maxlength = 10;
        //$edit->ano->mode      = 'autohide';
        //$edit->ano->when      =array('show','modify');
        $edit->ano->css_class = 'inputnum';
        $edit->valor = new inputField('Valor', 'valor');
        $edit->valor->rule = 'trim|numeric';
        $edit->valor->css_class = 'inputnum';
        $edit->valor->size = 21;
        $edit->valor->maxlength = 19;
        $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
        $edit->build();
        $data['content'] = $edit->output;
        $data['head'] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css');
        $data['title'] = $this->tits;
        $this->load->view('view_ventanas', $data);
    }
开发者ID:enderochoa,项目名称:tortuga,代码行数:38,代码来源:utribu.php


示例18: centinelas

 function centinelas()
 {
     $this->load->helper('directory');
     $this->load->library('table');
     $tmpl = array('row_start' => '<tr valign="top">');
     $this->table->set_template($tmpl);
     $map = directory_map('./system/logs/');
     $lista = array();
     foreach ($map as $file) {
         if ($file != 'index.html') {
             $lista[] = "<a href='javascript:void(0)' onclick=\"carga('{$file}')\" >{$file}</a> <a href='javascript:void(0)' onclick=\"carga1('{$file}')\" ><h1>Eliminar</h1></a>";
         }
     }
     $copy = "<br><a href='javascript:void(0)' class='mininegro'  onclick=\"\$.copy('copy this text')\" >Copiar texto</a>";
     $this->table->add_row(ol($lista), '<b id="fnom">Seleccione un archivo de centinela</b><div id="log" class="marco1" style="width: 550px; min-height: 400px" ></div>');
     $link = site_url('supervisor/prueba/vercentinela');
     $link1 = site_url('supervisor/prueba/eliminar');
     $data['script'] = "<script>\n\t\t  function carga(arch){\n\t\t    link='{$link}'+'/'+arch;\n\t\t    //alert(link);\n\t\t    \$.clipboard(arch);\n\t\t    \$('#fnom').text(arch);\n\t\t    \$('#log').load(link);\n\t\t  };\n\t\t  function carga1(arch){\n\t\t    link='{$link1}'+'/'+arch;\n\t\t    //alert(link1);\n\t\t    \$.clipboard(arch);\n\t\t    \$('#fnom').text(arch);\n\t\t    \$('#log').load(link1);\n\t\t  };\n\t\t</script>";
     $data['content'] = $this->table->generate();
     $data['title'] = "<h1>Centinelas</h1>";
     $data["head"] = script("jquery.pack.js") . script('plugins/jquery.clipboard.pack.js') . $this->rapyd->get_head() . style('marcos.css') . style('estilos.css');
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:23,代码来源:prueba.php


示例19: edit

 /**
  * 修改公告
  */
 public function edit()
 {
     $id = intval($GLOBALS['id']);
     if (isset($GLOBALS['submit'])) {
         $formdata = $GLOBALS['form'];
         $formdata['title'] = remove_xss($formdata['title']);
         $formdata['thumb'] = remove_xss($formdata['thumb']);
         $linkageid = $this->db->update('express', $formdata, array('eid' => $id));
         MSG(L('operation success'), '?m=order&f=express&v=listing' . $this->su());
     } else {
         $show_formjs = 1;
         $form = load_class('form');
         load_function('admin');
         $endtime = SYS_TIME + 86400 * 30;
         $endtime = date('Y-m-d');
         $r = $this->db->get_one('express', array('eid' => $id));
         $styles = style($r['css']);
         //color:#ff0000;font-weight:bold
         $font_weight = $styles['font-weight'];
         $color = $styles['color'];
         include $this->template('express_edit');
     }
 }
开发者ID:another3000,项目名称:wuzhicms,代码行数:26,代码来源:express.php


示例20: dataedit

    function dataedit()
    {
        $this->rapyd->load('dataobject', 'dataedit');
        $script = '
			$(document).ready(function(){
				$(".inputnum").numeric(".");
			});
			';
        $do = new DataObject('r_cerrar');
        $edit = new DataEdit($this->tits, $do);
        $edit->back_url = site_url($this->url . "filteredgrid");
        $edit->script($script, 'create');
        $edit->script($script, 'modify');
        $edit->pre_process('insert', '_valida');
        $edit->pre_process('update', '_valida');
        $edit->pre_process('delete', '_pre_delete');
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->id = new inputField('Id', 'id');
        $edit->id->rule = 'trim';
        $edit->id->size = 13;
        $edit->id->maxlength = 11;
        $edit->id->mode = 'autohide';
        $edit->id->when = array('show', 'modify');
        $edit->fecha = new dateField('Fecha', 'fecha');
        $edit->fecha->rule = 'chfecha';
        $edit->fecha->size = 10;
        $edit->fecha->maxlength = 8;
        $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
        $edit->build();
        $data['content'] = $edit->output;
        $data['head'] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css');
        $data['title'] = $this->tits;
        $this->load->view('view_ventanas', $data);
    }
开发者ID:enderochoa,项目名称:tortuga,代码行数:36,代码来源:r_cerrar.php



注:本文中的style函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP styleDate函数代码示例发布时间:2022-05-23
下一篇:
PHP studly_case函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap