当前位置: 首页>>代码示例>>PHP>>正文


PHP print_layout函数代码示例

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


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

示例1: _

    ?>
				notify('<?php 
    echo _("Sorry, action not allowed");
    ?>
', 'nf_error');
				<?php 
}
?>

			$("#flextable").flexigrid({
    			url: 'getdbs.php',
    			dataType: 'xml',
    			colModel : [
    			<?php 
$default = array("name" => array(_('Name'), 300, 'true', 'center', false), "ip" => array(_('IP'), 120, 'true', 'center', false), "port" => array(_('Port'), 60, 'true', 'center', false), "user" => array(_('User'), 200, 'false', 'center', false), "pass" => array(_('Password'), 200, 'false', 'center', false), "icon" => array(_('Icon'), 270, 'false', 'left', false));
list($colModel, $sortname, $sortorder, $height) = print_layout($layout, $default, "name", "asc", 300);
echo "{$colModel}\n";
?>
    			],
    			buttons : [
    				{name: '<?php 
echo _("New");
?>
', bclass: 'add', onpress : action},
    				{separator: true},
    				{name: '<?php 
echo _("Modify");
?>
', bclass: 'modify', onpress : action},
    				{separator: true},
    				{name: '<?php 
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:dbs.php

示例2: eaccelerator_dasm_file

$file = $_GET['file'];
$asm = eaccelerator_dasm_file($file);
if ($asm == null) {
    die('File not found!');
}
require_once 'PHP_Highlight.php';
$h = new PHP_Highlight();
$h->loadFile($_GET['file']);
$source = $h->toArray();
/* what do we need to do ? */
if (!isset($_GET['show'])) {
    $show = '';
} else {
    $show = $_GET['show'];
}
print_layout();
switch ($show) {
    case 'main':
        print_op_array($asm['op_array']);
        break;
    case 'functions':
        if (is_array($asm['functions'][$_GET['name']])) {
            print_function($_GET['name'], $asm['functions'][$_GET['name']]);
        }
        break;
    case 'methods':
        if (isset($_GET['method']) && is_array($asm['classes'][$_GET['name']][$_GET['method']])) {
            print_method($_GET['method'], $asm['classes'][$_GET['name']][$_GET['method']]);
        }
        break;
}
开发者ID:rafaelfoster,项目名称:eaccelerator,代码行数:31,代码来源:dasm.php

示例3: intval

        $(document).ready(function(){
            
            $("#flextable").flexigrid({
                url: 'getsensor.php?onlyactive=<?php 
echo intval(GET('onlyactive')) > 0 ? 1 : 0;
?>
',
                dataType: 'xml',
                colModel : [
                <?php 
if (Session::show_entities()) {
    $default = array("ip" => array(_('IP'), 130, 'true', 'center', FALSE), "name" => array(_('Name'), 200, 'true', 'center', FALSE), "entities" => array(_('Contexts'), 230, 'false', 'center', FALSE), "priority" => array(_('Priority'), 60, 'true', 'center', FALSE), "port" => array(_('Port'), 50, 'true', 'center', TRUE), "version" => array(_('Version'), 190, 'false', 'center', FALSE), "connect" => array(_('Status'), 50, 'true', 'center', FALSE), "desc" => array(_('Description'), 284, 'false', 'left', FALSE));
} else {
    $default = array("ip" => array(_('IP'), 150, 'true', 'center', FALSE), "name" => array(_('Name'), 182, 'true', 'center', FALSE), "priority" => array(_('Priority'), 60, 'true', 'center', FALSE), "port" => array(_('Port'), 40, 'true', 'center', FALSE), "version" => array(_('Version'), 190, 'false', 'center', FALSE), "connect" => array(_('Status'), 50, 'true', 'center', FALSE), "desc" => array(_('Description'), 470, 'false', 'left', FALSE));
}
list($colModel, $sortname, $sortorder, $height) = print_layout($layout, $default, 'name', 'asc', 300);
echo "{$colModel}\n";
?>
                ],
                buttons : [
                    {name: '<?php 
echo _("New");
?>
', bclass: 'add', onpress : action},
                    {separator: true},
                    {name: '<?php 
echo _("Modify");
?>
', bclass: 'modify', onpress : action},
                    {separator: true},
                    {name: '<?php 
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:sensor.php

示例4: list

        		
        		$("#flextable_eng_<?php 
    echo $i;
    ?>
").flexigrid({
        			url: 'getpolicy.php?ctx=<?php 
    echo $group->get_ctx();
    ?>
&group=<?php 
    echo $group->get_group_id();
    ?>
',
        			dataType: 'xml',
        			colModel : [
        				<?php 
    list($colModel, $sortname, $sortorder, $height) = print_layout($layout, $def_eng_layout, "order", "asc", 150);
    echo "{$colModel}\n";
    ?>
        				],
        			buttons : [
        				{name: '<?php 
    echo _("New");
    ?>
', bclass: 'add', onpress : action},
        				{separator: true},
        				{name: '<?php 
    echo _("Modify");
    ?>
', bclass: 'modify', onpress : action},
        				{separator: true},
        				{name: '<?php 
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:30,代码来源:policy.php

示例5: print_layout

                            }
                        }
                    }
                    $aop->export_pdf();
                    //
                    // Output to browser
                    //
                    $d->ezOutput();
                    $d->stream();
                    die;
                }
                break;
        }
    }
}
print_layout($error);
//
// Functions
//
function print_layout($error = array())
{
    global $_submenu, $print_auth, $db, $user, $config, $screen;
    page_header();
    $page_e = explode('/', requested_url());
    $folder = array_splice($page_e, 1, 1);
    $folder = !empty($screen) ? $screen : $folder[0];
    $_buildmenu = array();
    foreach ($_submenu as $k => $v) {
        if (!$print_auth[$k]) {
            continue;
        }
开发者ID:nopticon,项目名称:ei,代码行数:31,代码来源:print.php

示例6: array

}
?>
			
			$("a.greybox").click(function(){
				var t = this.title || $(this).text() || this.href;
				GB_show(t,this.href,300,700);
				return false;
			});
			
			$("#flextable").flexigrid({
				url: 'getpluginref.php',
				dataType: 'xml',
				colModel : [
				<?php 
$default = array("name" => array(_('Data Source Name'), 200, 'false', 'left', false), "sid name" => array(_('Event Type'), 380, 'false', 'left', false), "ref name" => array(_('Ref Name'), 200, 'false', 'left', false), "ref sid name" => array(_('Ref Sid Name'), 388, 'false', 'left', false));
list($colModel, $sortname, $sortorder) = print_layout($layout, $default, "id", "asc");
echo "{$colModel}\n";
?>
					],
				buttons : [
					{name: '<?php 
echo _("New");
?>
', bclass: 'add', onpress : action},
					{separator: true},
					{name: '<?php 
echo _("Modify");
?>
', bclass: 'modify', onpress : action},
					{separator: true},
					{name: '<?php 
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:pluginref.php

示例7: array

    $nodes[$server->get_id()] = array('color' => 'green', 'shape' => 'rectangle', 'label' => $server->get_name() . ' (' . $server->get_ip() . ')');
    // get childs with uuid like a parent
    $sql = "SELECT distinct(HEX(server_dst_id)) as id FROM server_forward_role WHERE server_src_id=UNHEX(?)";
    if (!($rs = $conn->Execute($sql, array($server->get_id())))) {
        Av_exception::throw_error(Av_exception::DB_ERROR, $conn->ErrorMsg());
    }
    $aux = array();
    while (!$rs->EOF) {
        $aux[$rs->fields["id"]] = array('directed' => TRUE, 'length' => 5, 'weight' => 2, 'color' => '#999999');
        $rs->MoveNext();
    }
    $edges[$server->get_id()] = $aux;
}
/*********  Layout  *********/
$layout = array("ip" => array(_('IP'), 80, 'true', 'center', false), "name" => array(_('Name'), 180, 'true', 'center', false), "port" => array(_('Port'), 30, 'true', 'center', false), "sim" => array(_('SIEM'), 40, 'false', 'center', false), "qualify" => array(_('Risk Assessment'), 65, 'false', 'center', false), "correlate" => array(_('Correlation'), 75, 'false', 'center', false), "cross correlate" => array(_('Cross correlation'), 75, 'false', 'center', false), "store" => array(_('SQL Storage'), 50, 'false', 'center', false), "alarm to syslog" => array(_('Alarm Syslog'), 50, 'false', 'center', false), "reputation" => array(_('IP Rep'), 30, 'false', 'center', false), "sem" => array(_('Logger'), 50, 'false', 'center', false), "sign" => array(_('Sign'), 45, 'false', 'center', false), "resend_alarms" => array(_('Forward Alarms'), 50, 'false', 'center', false), "resend_events" => array(_('Forward Events'), 50, 'false', 'center', false), "desc" => array(_('Description'), 210, 'false', 'left', false));
list($colModel, $sortname, $sortorder, $height) = print_layout(array(), $layout, "name", "asc", 300);
/*********  Message  *********/
$msg = GET('msg');
switch ($msg) {
    case 'created':
        $msg_text = _('The Server has been created successfully');
        $msg_class = 'nf_success';
        break;
    case 'updated':
        $msg_text = _('The Server has been updated successfully');
        $msg_class = 'nf_success';
        break;
    case 'deletesystemfirst':
        $msg_text = _('Removing the server from this page is not allowed. To remove the server, please go to AlienVault Center and delete the system from the component list.');
        $msg_class = 'nf_error';
        break;
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:server.php

示例8: sugar_die

        sugar_die("quote layout file does not exist: " . $layouts[$layout]);
    } else {
        include_once $layouts[$layout];
    }
}
foreach (SugarAutoLoader::existing('modules/Quotes/Layouts.override.php', 'custom/modules/Quotes/Layouts.php') as $file) {
    include_once $file;
}
if (isset($_REQUEST['email_action']) && $_REQUEST['email_action'] == "EmailLayout") {
    //check to make sure the layout is set
    if (isset($_REQUEST['layout'])) {
        include_once 'modules/Quotes/EmailPDF.php';
        $email_id = email_layout($_REQUEST['layout']);
    }
    //redirect
    if ($email_id == "") {
        //Redirect to quote, since something went wrong
        echo "There was an error with your request";
        exit;
        //end if email id is blank
    } else {
        //Redirect to new email draft just created
        header("Location: index.php?action=Compose&module=Emails&parent_type=Quotes&return_module=Quotes&return_action=DetailView&return_id=" . $_REQUEST['record'] . "&recordId={$email_id}" . "&parent_id=" . $_REQUEST['record']);
    }
    //end if email layout
} else {
    if (isset($_REQUEST['layout'])) {
        print_layout($_REQUEST['layout']);
    }
    //end if else traditional print layout
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:Layouts.php


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