本文整理汇总了PHP中compiletpl函数的典型用法代码示例。如果您正苦于以下问题:PHP compiletpl函数的具体用法?PHP compiletpl怎么用?PHP compiletpl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了compiletpl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getEdit
function getEdit($formname, $var_prefix = "")
{
switch ($this->extra)
{
case "name":
$value = $_SESSION['murrix']['user']->name;
break;
case "userid":
$value = $_SESSION['murrix']['user']->id;
break;
case "username":
$value = $_SESSION['murrix']['user']->username;
break;
case "date":
$value = date("Y-m-d");
break;
case "datetime":
$value = date("Y-m-d H:i:s");
break;
default:
$value = $this->getValue(true);
break;
}
return compiletpl("datatypes/hidden/edit", $this->getStandardArgs($formname, $var_prefix));
}
示例2: eventHandler
function eventHandler(&$system, $event, $args)
{
if (is_array($this->events[$event]))
{
foreach ($this->events[$event] as $key)
$system->setZoneData($key, utf8e(compiletpl($this->zones[$key], array())));
}
}
示例3: draw
function draw(&$system, $args)
{
$node_id = $this->getNodeId($args);
$data = "";
if ($node_id > 0)
{
$object = new mObject($node_id);
$data = compiletpl("scripts/versions", array(), $object);
}
else
$data = compiletpl("message", array("titel"=>ucf(i18n("error")), "message"=>ucf(i18n("the specified path is invalid"))));
$system->setZoneData($this->zone, utf8e($data));
}
示例4: getEdit
function getEdit($formname, $var_prefix = "")
{
$selections = explode(",", $this->extra);
$list = array();
foreach ($selections as $selection)
{
$parts = explode("=", $selection);
$list[$parts[1]] = $parts[0];
}
return compiletpl("datatypes/selection/edit", array_merge($this->getStandardArgs($formname, $var_prefix), array("list"=>$list)));
}
示例5: compiletpl
<?php
echo compiletpl("title/big", array("left" => "Configuration"));
?>
<form name="sInstall" id="sInstall" action="javascript:void(null);" onsubmit="Post('install','sInstall')">
<input class="hidden" type="hidden" name="action" value="finish">
Default theme<br/>
<select class="selectbox" name="theme">
<?
global $abspath;
$folders = GetSubfolders("$abspath/design");
foreach ($folders as $folder)
echo "<option ".($folder == $args['theme'] ? "selected" : "")." value=\"$folder\">".ucf($folder)."</option>";
?>
</select><br/>
Imagesize<br/>
<input class="textline" name="imgsize" value="<?php
echo $args['imgsize'];
?>
" type="text"><br/>
Thumbnailsize<br/>
<input class="textline" name="thumbsize" value="<?php
echo $args['thumbsize'];
?>
" type="text"><br/>
Instant thumbnail creation<br/>
<select class="selectbox" name="instantthumbs">
<option <?php
echo "true" == $args['instantthumbs'] ? "selected" : "";
?>
示例6: array
$itemlist[] = array(cmd(img(geticon("back"))." ".ucf(i18n("parent folder")), "exec=import&view=upload&node_id=".$object->getNodeId()."&path=".urlencode(GetParentPath($path)."/")));
foreach ($subitems as $subitem)
{
$checkbox = "<input checked class=\"input\" type=\"checkbox\" name=\"filenames[]\" value=\"$subitem\"/>";
if (is_dir("$abspath/upload/$path$subitem"))
$itemlist[] = array("$checkbox ".cmd(img(geticon("file_folder"))." ".$subitem, "exec=import&view=upload&node_id=".$object->getNodeId()."&path=".urlencode("$path$subitem/")));
else
{
$type = getfiletype(pathinfo("$abspath/upload/$path$subitem", PATHINFO_EXTENSION));
$itemlist[] = array("$checkbox ".img(geticon($type))." ".$subitem);
}
}
echo compiletpl("table", array("list"=>$itemlist, "endstring"=>"% ".i18n("rows")));
?>
<input class="submit" type="button" onclick="checkUncheckAll(this)" value="<?php
echo ucf(i18n("invert selection"));
?>
"/>
<input class="submit" id="submitButton" type="submit" value="<?php
echo ucf(i18n("import"));
?>
"/>
<?
}
else
{
?>
<div class="main">
示例7: compiletpl
<br/>
<?
echo compiletpl("title/medium", array("left"=>ucf(i18n("log")), "right"=>runjs(img(geticon("delete"))." ".ucf(i18n("clear")), "Exec('','import',Hash('action','clearlog'))")));
echo $_SESSION['murrix']['system']->createZone("zone_import_log");
?>
示例8: array
<?
$args_title = array();
$args_title['left'] = img(geticon("comment"))." ".ucf(i18n("comments"));
if ($object->hasRight("create") || $object->hasRight("comment"))
$args_title['right'] = cmd(img(geticon("comment"))." ".ucf(i18n("post")), "exec=new&node_id=".$object->getNodeId()."&class_name=comment");
echo compiletpl("title/medium", $args_title, $object);
$pagername = "comments_show";
$children = fetch("FETCH node WHERE link:node_top='".$object->getNodeId()."' AND link:type='sub' AND property:class_name='comment' NODESORTBY property:version SORTBY !property:created");
$children = getReadable($children);
if (count($children) > 0)
{
include(gettpl("pager/start", $object));
for ($i = $start; $i < $end; $i++)
echo compiletpl("scripts/show/line", array(), $children[$i]);
include(gettpl("pager/end", $object));
}
?>
示例9: compiletpl
<?
echo compiletpl("title/big", array("left"=>"License"));
global $abspath;
?>
<div class="text_height">
<?php
echo nl2br(getFile("{$abspath}/docs/LICENSE.txt"));
?>
</div>
<center>
<?
echo cmd(img(imgpath("left.png")), "exec=install&action=preinstall");
echo cmd(img(imgpath("right.png")), "exec=install&action=database");
?>
</center>
示例10: ucw
<div style="font-weight: bold; text-align: center;"><?php
echo ucw(i18n("this"));
?>
</div>
<?php
echo ucf(i18n("file")) . " {$n} " . i18n("of") . " " . count($family);
?>
</td>
<td style="vertical-align: top; text-align: center;">
<?
if ($next !== false)
{
?>
<div class="show_item_wrapper">
<?php
echo compiletpl("scripts/show/item", array(), $next);
?>
<div class="clear"></div>
</div>
<div style="font-weight: bold; text-align: center;"><?php
echo ucw(i18n("next"));
?>
</div>
<?
}
else
{
?>
<div class="show_item_wrapper">
<div class="show_item"> </div>
<div class="clear"></div>
示例11: compiletpl
<?
global $abspath;
echo compiletpl("title/big", array("left"=>img(geticon("list"))." XML ".ucf(i18n("import"))."/".ucf(i18n("export"))));
?>
<div class="xml_wrapper">
<div class="main">
<fieldset>
<legend>
<?php
echo ucf(i18n("export"));
?>
</legend>
<form name="sExport" id="sExport" action="index.php?xml">
<div>
<input class="hidden" type="hidden" name="xml" value=""/>
<?php
echo ucf(i18n("name"));
?>
<br/>
<input class="input" type="input" name="name" value="MURRiX Export"/><br/>
<?php
echo ucf(i18n("description"));
?>
<br/>
<textarea class="input"></textarea><br/>
<br/>
<?php
echo ucf(i18n("options"));
?>
示例12: img
?>
</div>
<div class="title">
<a class="right" href="javascript:void(null)" onclick="toggleSidebarContainer('calendar')"><?php
echo img(imgpath("1downarrow.png"), "", "", "calendar_arrow");
?>
</a>
<?php
echo cmd(ucf(i18n("calendar")), "exec=calendar", "sidebar");
?>
</div>
<div id="calendar_container" class="container">
<div class="container">
<?php
echo compiletpl("scripts/calendar/small_month", array("firstday" => strtotime(date("Y-m") . "-01")));
?>
</div>
</div>
<?php
echo $_SESSION['murrix']['system']->createZone("zone_poll");
?>
<?php
echo $_SESSION['murrix']['system']->createZone("zone_info");
?>
</td>
</tr>
</table>
示例13: img
for ($i = $args['start']; $i < $args['end']; $i++)
{
$object = $args['objects'][$i];
?>
<div class="sub_title">
<a class="right" href="javascript:void(null)" onclick="toggleSidebarContainer('<?php
echo $object->getNodeId();
?>
')"><?php
echo img(imgpath("1downarrow.png"), "", "", $object->getNodeId() . "_arrow");
?>
</a>
<?php
echo cmd(img(getIcon($object->getIcon())) . " " . $object->getName(), "exec=show&node_id=" . $object->getNodeId());
?>
<div class="clear"></div>
</div>
<div id="<?php
echo $object->getNodeId();
?>
_container">
<?php
echo compiletpl("scripts/show/data", array(), $object);
?>
<?php
echo compiletpl("scripts/show/children", array(), $object);
?>
</div>
<?
}
?>
示例14: compiletpl
<?
echo compiletpl("title/big", array("left"=>"Finish"));
echo $args['logtext'];
?>
<center>
<?
echo cmd(img(imgpath("left.png")), "exec=install&action=config");
echo "<a href=\"./\">".img(imgpath("right.png"))."</a>";
?>
</center>
示例15: getShow
function getShow()
{
return compiletpl("datatypes/thumbnail/show", $this->getStandardArgs($formname, $var_prefix));
}