Location: PHPKode > projects > ZAPms > zap/templates/newsletter_details.tpl
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="core.conf" scope="global" section=$ui_lang}
{config_load file="newsletter.conf" scope="local" section=$ui_lang}
<html>
<head>
	<title>{$entry_info.entry_title}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="modules/core/{$zap_theme|default:'core'}.css" rel="stylesheet" type="text/css" />
	{literal}
		<script type="text/javascript" src="modules/core/core.js"></script>
		<script type="text/javascript">
			function changeSourceType(field_source,target) {
				var src = document.getElementById(field_source);
				var target = document.getElementById(target);
				var src_type = src.value;
				if (src_type == 'static') {
					target.style.display="block";
				} else {
					target.style.display="none";
				}
			}
			function oBrowser(field_source, field_sourcetype) {
				var field_name = field_source;
				var src_type = document.forms[0].elements[field_sourcetype].value;
				var field_url = document.forms[0].elements[field_source].value;
				var browser_url = 'modules/fm/fileBrowser.php';
				browser_url = this.location.pathname + browser_url;
				browser_request = "?action=" + src_type + "&subaction=browser&field_name=" + field_name + "&field_url=" + field_url;
				fileBrowserPopup = open(browser_url + browser_request, "fileBrowser"+src_type, "modal, width=520, height=500, status=yes, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, left=400, top=160");
			}
		</script>
	{/literal}
</head>
<body>
{strip}

<div class="docFrame">
	<!-- Middle Frame -->
	<p class="docFrameP">{#detailtabLabel#}</p>

	<!-- warnings-->
    {if $error_msg}
        <div class="errorMessage"><a href="#" class="i18_warn" title="{#infoLabel#}"></a> {$error_msg}</div>
    {/if}
    {if $warning_msg}
        <div class="warningMessage"><a href="#" class="i18_warn" title="{#infoLabel#}"></a> {$warning_msg}</div>
    {/if}
	<br />
	<!-- warnings-->
	
	<div id="details_form">
	<form id="tourist_details" method="post" action="">
	<table border="0" cellspacing="2" cellpadding="0">
      <tr>
        <td>{#idLabel#}:</td>
        <td>&nbsp;</td>
        <td>{$details.id|default:'--'}</td>
        </tr>
      <tr>
        <td>{#subjLabel#}<span class="asterix">*</span>:</td>
        <td>&nbsp;</td>
        <td><input name="subject" type="text" value="{$details.subject}" size="50" maxlength="128" /></td>
        </tr>
      <tr>
        <td>{#groupLabel#}:</td>
        <td>&nbsp;</td>
        <td><select name="target_group">
		<option value="">---</option>
		{section name=customer loop=$group_list}
		<option value="{$group_list[customer]}"{if $details.target_group eq $group_list[customer]} selected{/if}>{$group_list[customer]}</option>
		{/section}
		</select></td>
        </tr>
      <tr>
      <tr>
        <td>{#sourceLabel#}:</td>
        <td>&nbsp;</td>
        <td><table border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td>
            <input name="source" type="text" value="{$details.source|default:'newsletter/News.html'}" size="50" maxlength="128" />
            <input name="sourcetype" type="hidden" value="static" /></td>
			<td><div id="fmBrowser"><a href="javascript:oBrowser('source','sourcetype')" class="i18_br" title="{#searchButtonLabel#}"></a></div>
			</td>
		  </tr>
		</table></td>
        </tr>
      <tr>
	  <td>{#recipientTypeLabel#}<span class="asterix">*</span>:</td>
	  <td>&nbsp;</td>
	  <td><select name="recipienttype" id="recipienttype"{if $details.status>1} disabled="disabled" style="color:#999999"{/if} onchange="changeSourceType('recipienttype','recipient');">
		{section name=customer loop=$recipienttype_list}
		<option value="{$recipienttype_list[customer]}"{if $details.recipienttype eq $recipienttype_list[customer]} selected{/if}>{$recipienttype_list[customer]}</option>
		{/section}
		</select></td>
	  </tr>
	<tr>
	  <td valign="top">{#recipientLabel#}:</td>
	  <td>&nbsp;</td>
	  <td><textarea name="recipient" id="recipient" cols="65" rows="20"{if $details.id} style="color:#999"{/if}>{$details.recipient}</textarea>
	  {if $details.id}
	  {/if}
	    <div class="eTt">
		static: {#staticSrc#}<br />
		dynamic: {#dynamicSrc#}<br />&nbsp;</div>
        </td>
	  </tr>
    </table>

      <table border="0" cellspacing="2" cellpadding="0">
      <tr>
        <td><div class="eTt">{#statusLabel#}:</div></td>
        <td>&nbsp;</td>
        <td>
        {section name=status_counter loop=$status_list}
        <label{if $details.status eq $status_list[status_counter].id}{if $details.status<2} style="background-color:#FFFF00"{elseif $details.status>1 and $details.status<4} style="background-color:#FFDFDF"{else} style="background-color:#DFFFDF"{/if}{/if}><input value="{$status_list[status_counter].id}"{if $details.status eq $status_list[status_counter].id} checked="checked"{/if} type="radio" name="status" />{$status_list[status_counter].title}</label>&nbsp; &nbsp;
        {/section}</td>
      </tr>
      <tr>
        <td><div class="eTt">{#createtimeLabel#}:</div></td>
        <td>&nbsp;</td>
        <td><div class="eTt">{if $details.createtime}{$details.createtime|date_format:"%d.%m.%Y %H:%M:%S"}{else}--{/if}</div></td>
      </tr>
      <tr>
        <td><div class="eTt">{#modifytimeLabel#}:</div></td>
        <td>&nbsp;</td>
        <td><div class="eTt">{if $details.modifytime}{$details.modifytime|date_format:"%d.%m.%Y %H:%M:%S"}{else}--{/if}</div></td>
      </tr>
    </table>
	<br />
	<input name="action" type="hidden" value="{if $details.id}edit{else}create{/if}" />
	<input name="subaction" type="hidden" value="newsletter" />
	<input name="entry_id" type="hidden" value="{$entry_info.entry_id}" />
	<input name="id" type="hidden" value="{$details.id}" />
	<input name="details_id" type="hidden" value="{$details.id}" />
	<input name="createtime" type="hidden" value="{$details.createtime}" />
	<input name="modifytime" type="hidden" value="{$details.modifytime}" />
	<div align="center">
	{if $entry_info.entry_attr > 1}
		<span class="brbcss"><input class="bcss" type="submit" value="&radic; {#saveButtonLabel#}" /></span> 
	{/if}
	<span class="brbcss"><input id="newObj" class="bcss" type="button" onclick="refreshOpener('{$SID}','{$entry_info.entry_id}','list','')" value="&times; {#closeButtonLabel#}" /></span>
	</div>
	</form>
	<script type="text/javascript">changeSourceType('recipienttype','recipient');</script>
	</div>
	</div>
{/strip}
</body>
</html>
Return current item: ZAPms