Пример #1
0
?>
		<a name="customDocEntryTpl"></a>
		<h3>Custom document entry template</h3>
		<div class="descr">This options gives you the possibility to customize the document article entry template which is a part of the document. There are some
		placeholders which are replaced with the corresponding content.</div>
		<table>
		<tr>
			<td class="tr1">Cutomize document entry template</td>
			<td><input type="checkbox" name="docEntryTplInUse" <?php 
echo pdf24Plugin_isCustomizedDocEntryTpl() ? 'checked' : '';
?>
 onclick="pdf24_showHideCheck('docEntryTplOptions', this);" /></td>
		</tr>
		</table>
		<table id="docEntryTplOptions" class="<?php 
echo pdf24Plugin_isCustomizedDocEntryTpl() ? '' : 'noDis';
?>
">
		<tr>
			<td class="tr1">Custom document entry template:<br />
				<a href="javascript:void(document.forms.pdf24Form.docEntryTpl.value = '<?php 
echo pdf24Plugin_makeJsString($docEntryTpls['default']);
?>
');">Load default</a>
			</td>
			<td><textarea name="docEntryTpl" class="cusDocEntryTpl"><?php 
echo htmlspecialchars($docEntryTpls['tpl']);
?>
</textarea></td>
		</tr>
		</table>
Пример #2
0
function pdf24Plugin_getDocEntryTpl()
{
    global $pdf24Plugin;
    $default = pdf24Plugin_getDefaultDocEntryTpl();
    $custom = pdf24Plugin_isCustomizedDocEntryTpl() ? pdf24Plugin_getCustomizedDocEntryTpl() : false;
    return array('tpl' => $custom ? $custom : $default, 'custom' => $custom, 'default' => $default);
}