예제 #1
0
?>
		<a name="customDocTpl"></a>
		<h3>Custom document template</h3>
		<div class="descr">This options gives you the possibility to customize the document template which encloses all article entries. There are some
		placeholders which are replaced with the corresponding content.</div>
		<table>
		<tr>
			<td class="tr1">Cutomize document template</td>
			<td><input type="checkbox" name="docTplInUse" <?php 
echo pdf24Plugin_isCustomizedDocTpl() ? 'checked' : '';
?>
 onclick="pdf24_showHideCheck('docTplOptions', this);" /></td>
		</tr>
		</table>
		<table id="docTplOptions" class="<?php 
echo pdf24Plugin_isCustomizedDocTpl() ? '' : 'noDis';
?>
">
		<tr>
			<td class="tr1">Custom document template:<br />
				<a href="javascript:void(document.forms.pdf24Form.docTpl.value = '<?php 
echo pdf24Plugin_makeJsString($docTpls['default']);
?>
');">Load default</a>
			</td>
			<td><textarea name="docTpl" class="cusDocTpl"><?php 
echo htmlspecialchars($docTpls['tpl']);
?>
</textarea></td>
		</tr>
		</table>
예제 #2
0
파일: common.php 프로젝트: besimhu/legacy
function pdf24Plugin_getDocTpl()
{
    global $pdf24Plugin;
    $default = pdf24Plugin_getDefaultDocTpl();
    $custom = pdf24Plugin_isCustomizedDocTpl() ? pdf24Plugin_getCustomizedDocTpl() : false;
    return array('tpl' => $custom ? $custom : $default, 'custom' => $custom, 'default' => $default);
}