Example #1
0
		</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>
		</tr>
		</table>
		<table id="emailOptions" class="<?php 
echo pdf24Plugin_isEmailOptionsInUse() ? '' : 'noDis';
?>
">
		<tr>
			<td class="tr1">Type:</td>
			<td>
				<select name="emailType">
					<option value="text/plain"<?php 
echo pdf24Plugin_getEmailType() == 'text/plain' ? ' selected' : '';
?>
>Text</option>
					<option value="text/html"<?php 
echo pdf24Plugin_getEmailType() == 'text/html' ? ' selected' : '';
?>
>HTML</option>
				</select>
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'));
}