Example #1
0
" /></td>
		</tr>
		<tr>
			<td class="tr1">Page format:</td>
			<td><select name="docSize"><?php 
echo pdf24Plugin_createDocSizeOptions();
?>
</select> <select name="docOrientation"><?php 
echo pdf24Plugin_createDocOrientationOptions();
?>
</select></td>
		</tr>
		<tr>
			<td valign="top">CSS Style:<br />(<small>Use CSS to format the tags and classes <b>body, h1, h2, p, div, a, .bodyPart, .meta, .text</b></small>)</td>
			<td><textarea name="docStyle" style="width:600px; height:150px"><?php 
echo htmlspecialchars(pdf24Plugin_getDocStyle());
?>
</textarea></td>
		</tr>
		</table>
	</div>
	<div>
		<h3>Email Options</h3>	
		<div class="descr">The created PDF is sent to the entered email address. You can enter your own email texts.</div>
		<table>
		<tr>
			<td class="tr1">Customize options</td>
			<td><input type="checkbox" name="emailOptionsInUse" <?php 
echo pdf24Plugin_isEmailOptionsInUse() ? 'checked' : '';
?>
  onclick="pdf24_showHideCheck('emailOptions', this);" /></td>
Example #2
0
function pdf24Plugin_getBlogHiddenFields($postsCount)
{
    global $pdf24Plugin;
    $arr = array('blogCharset' => get_bloginfo('charset'), 'blogPosts' => $postsCount, 'blogUrl' => get_bloginfo('siteurl'), 'blogName' => get_bloginfo('name'), 'blogValueEncoding' => $pdf24Plugin['defaultFilter']);
    if (pdf24Plugin_isEmailOptionsInUse()) {
        $arr['blogEmailText'] = pdf24Plugin_getEmailText();
        $arr['blogEmailType'] = pdf24Plugin_getEmailType();
        $arr['blogEmailSubject'] = pdf24Plugin_getEmailSubject();
        $arr['blogEmailFrom'] = pdf24Plugin_getEmailFrom();
    }
    if (pdf24Plugin_isDocOptionsInUse()) {
        $arr['blogDocHeader'] = pdf24Plugin_getDocHeader();
        $arr['blogDocSize'] = $pdf24Plugin['docSizes'][pdf24Plugin_getDocSize()];
        $arr['blogDocOrientation'] = pdf24Plugin_getDocOrientation();
        $arr['blogDocStyle'] = pdf24Plugin_getDocStyle();
    }
    if (pdf24Plugin_isCustomizedDocTpl()) {
        $arr['blogDocTpl'] = pdf24Plugin_getCustomizedDocTpl();
    }
    if (pdf24Plugin_isCustomizedDocEntryTpl()) {
        $arr['blogDocEntryTpl'] = pdf24Plugin_getCustomizedDocEntryTpl();
    }
    return pdf24Plugin_getFormHiddenFields0($arr, array('skipFilterFor' => 'blogValueEncoding'));
}