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


PHP compiletpl函数代码示例

本文整理汇总了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));
	}
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:26,代码来源:class.mvar.hidden.php

示例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())));
		}
	}
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:8,代码来源:script.php

示例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));
	}
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:15,代码来源:script.php

示例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)));
	}
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:15,代码来源:class.mvar.selection.php

示例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" : "";
?>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:31,代码来源:config.php

示例6: array

				$itemlist[] = array(cmd(img(geticon("back"))."&nbsp;".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&nbsp;".cmd(img(geticon("file_folder"))."&nbsp;".$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&nbsp;".img(geticon($type))."&nbsp;".$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">
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:31,代码来源:upload.php

示例7: compiletpl

<br/>
<?
echo compiletpl("title/medium", array("left"=>ucf(i18n("log")), "right"=>runjs(img(geticon("delete"))."&nbsp;".ucf(i18n("clear")), "Exec('','import',Hash('action','clearlog'))")));
echo $_SESSION['murrix']['system']->createZone("zone_import_log");
?>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:5,代码来源:log.php

示例8: array

<?
$args_title = array();
$args_title['left'] = img(geticon("comment"))."&nbsp;".ucf(i18n("comments"));
if ($object->hasRight("create") || $object->hasRight("comment"))
	$args_title['right'] = cmd(img(geticon("comment"))."&nbsp;".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));
}
?>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:23,代码来源:comments.php

示例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>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:16,代码来源:license.php

示例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">&nbsp;</div>
							<div class="clear"></div>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:31,代码来源:data-file.php

示例11: compiletpl

<?
global $abspath;
echo compiletpl("title/big", array("left"=>img(geticon("list"))."&nbsp;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"));
?>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:31,代码来源:view.php

示例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>
		
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:30,代码来源:pagelayout.php

示例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())) . "&nbsp;" . $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>
<?
}
?>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:31,代码来源:children-sub.php

示例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>
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:12,代码来源:finish.php

示例15: getShow

	function getShow()
	{
		return compiletpl("datatypes/thumbnail/show", $this->getStandardArgs($formname, $var_prefix));
	}
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:4,代码来源:class.mvar.thumbnail.php


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