Subversion Repositories wpShopGermany4

Rev

Rev 7575 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1379 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des PDFDownload Moduls
5
	 */
6
 
7
?>
5825 daniel 8
 
9
<div>
10
    <ul class="nav nav-tabs" role="tablist">
11
        <li role="presentation" class="active"><a href="#tab1" role="tab" data-toggle="tab"><?php echo __('Einstellungen', 'wpsg'); ?></a></li>
7824 daniel 12
        <li role="presentation"><a href="#tab5" role="tab" data-toggle="tab"><?php echo __('Templates', 'wpsg'); ?></a></li>
13
        <li role="presentation"></li>
5825 daniel 14
        <li role="presentation"><a href="#tab3" role="tab" data-toggle="tab"><?php echo __('Erweitert', 'wpsg'); ?></a></li>
15
        <li role="presentation" style="float:right;"><a href="#tab4" role="tab" data-toggle="tab"><?php echo __('Info / Hilfe', 'wpsg'); ?></a></li>
16
    </ul>
17
    <div class="tab-content">
18
 
19
        <div role="tabpanel" class="tab-pane active" id="tab1">
20
 
21
            <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_filename', __('Personalisierter Dateiname', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_filename'), array('help' => 'mod_pdfdownload_einstellungen_filename')); ?>
1598 daniel 22
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_indiv_mode', __('Individualisierung planen', 'wpsg'), array(0 => __('Manuell', 'wpsg'), 1 => __('Nach Zahlung', 'wpsg'), 2 => __('Nach Bestellung', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_indiv_mode'), array('help' => 'mod_pdfdownload_einstellungen_individualisierungsmodus')); ?>
1528 daniel 23
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_autosend', __('PDFs nach Individualisierung sofort senden', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_autosend'), array('help' => 'mod_pdfdownload_einstellungen_autosend')); ?>
4929 thomas 24
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_shipping', __('Versandart "Versand per Mail" aktiv', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_shipping'), array('help' => 'wpsg_mod_downloadplus_shipping')); ?>
25
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_einsplusx', __(' Mehr als ein Produkt im Warenkorb zulassen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_einsplusx'), array('help' => 'wpsg_mod_downloadplus_einsplusx')); ?>
5825 daniel 26
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_accepted', __('Gültigkeit von Links', 'wpsg'), array(0 => __('Unbegrenzt', 'wpsg'), 1 => __('Nach Downloads', 'wpsg'), 2 => __('Nach Tagen', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_accepted'), array('field_class' => 'wpsg_change', 'help' => 'mod_pdfdownload_einstellungen_accepted')); ?>
27
 
28
            <div class="wpsg_mod_downloadplus_accepted wpsg_mod_downloadplus_accepted_2">
29
                <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_days', __('Gültigkeit in Tagen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_days'), array('help' => 'wpsg_mod_downloadplus_days')); ?>
30
            </div>
31
 
32
            <div class="wpsg_mod_downloadplus_accepted wpsg_mod_downloadplus_accepted_1">
33
			    <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_downloads', __('Anzahl an möglichen Downloads', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_downloads'), array('help' => 'wpsg_mod_downloadplus_downloads')); ?>
34
            </div>
35
 
36
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_cleanraiddownloads', __('Abgelaufene Downloads bereinigen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_cleanraiddownloads'), array('help' => 'wpsg_mod_downloadplus_cleanraiddownloads')); ?>
37
            <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_cleanolddownloads', __('Downloads nach X Tagen löschen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_cleanolddownloads'), array('help' => 'wpsg_mod_downloadplus_cleanolddownloads')); ?>
6848 thomas 38
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_pdfpath', __('Pfad für die PDFs der Produkte', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_pdfpath'), array('hint' => __('Standard: uploads/wpsg/wpsg_pdfprodukte/', 'wpsg'), 'help' => 'wpsg_mod_downloadplus_pdfpath')); ?>
39
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_pdfindivpath', __('Pfad für die Individualisierten PDFs', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_pdfindivpath'), array('hint' => __('Standard: uploads/wpsg/wpsg_pdfprodukte_order/', 'wpsg'), 'help' => 'wpsg_mod_downloadplus_pdfindivpath')); ?>
4929 thomas 40
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_format', __('Auslieferungsformat', 'wpsg'), array(0 => __('Direkt', 'wpsg'), 1 => __('Gezippt (intern)', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_format'), array('help' => 'wpsg_mod_downloadplus_format')); ?>
5825 daniel 41
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_range', __('Anpassung', 'wpsg'), array(0 => __('Gesamtes Dokument', 'wpsg'), 1 => __('Bereich', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_range'), array ('field_class' => 'wpsg_change', 'help' => 'wpsg_mod_downloadplus_range')); ?>
42
 
43
            <div class="wpsg_mod_downloadplus_range wpsg_mod_downloadplus_range_1">
44
                <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_range_von', __('Anpassung ab Seite', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_range_von'), array()); ?>
45
                <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_range_bis', __('Anpassung bis Seite', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_range_bis'), array()); ?>
46
            </div>
47
 
48
            <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_masterpass', __('Passwort (Um Schutz aufzuheben)', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_masterpass'), array('help' => 'wpsg_mod_downloadplus_masterpass')); ?>
4934 thomas 49
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_openpass', __('Passwort (Um Dokument öffnen zu können)', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_openpass'), array('help' => 'wpsg_mod_downloadplus_openpass')); ?>
5825 daniel 50
 
51
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_securitysave', __('Speichern erlauben', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_securitysave'), array('label' => __('Dokumentenberechtigung', 'wpsg'))); ?>
52
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_securityprint', __('Drucken erlauben', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_securityprint')); ?>
53
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_securitymod', __('Modifizieren erlauben', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_securitymod')); ?>
54
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_securitynote', __('Bemerkungen erlauben', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_securitynote')); ?>
55
 
56
            <?php echo wpsg_drawForm_TextStart(); ?>
6006 hartmut 57
            <?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#pdfdownloadcronmail'); ?>
58
			<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_individualisierungsbericht" class="glyphicon glyphicon-question-sign" data-wpsg-tip="mod_pdfdownload_individualisierungsbericht" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_individualisierungsbericht"></a>
5825 daniel 59
            <?php echo wpsg_drawForm_TextEnd(__('Mail für Individualisierungsbericht', 'wpsg'), array('noP' => true)); ?>
60
            <?php echo wpsg_drawForm_TextStart(); ?>
6006 hartmut 61
            <?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#pdfdownloadfiles'); ?>
62
			<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_kundenmail" class="glyphicon glyphicon-question-sign" data-wpsg-tip="mod_pdfdownload_kundenmail" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_kundenmail"></a>
5825 daniel 63
            <?php echo wpsg_drawForm_TextEnd(__('Mail für Downloads an Kunden', 'wpsg'), array('noP' => true)); ?>
64
            <?php echo wpsg_drawForm_TextStart(); ?>
6006 hartmut 65
            <?php echo (($this->get_option('wpsg_lastCron') > 0)?wpsg_formatTimestamp($this->get_option('wpsg_lastCron')):__('Noch nicht ausgeführt', 'wpsg')); ?>
66
			<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_einstellungen_cron" class="glyphicon glyphicon-question-sign" data-wpsg-tip="mod_pdfdownload_einstellungen_cron" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_einstellungen_cron"></a>
5825 daniel 67
            <?php echo wpsg_drawForm_TextEnd(__('Letzte Ausführung des Crons', 'wpsg'), array('noP' => true)); ?>
68
 
69
        </div>
70
 
71
        <div role="tabpanel" class="tab-pane" id="tab3">
72
 
73
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_memorylimit', __('Versuche Speicherlimit hochzusetzen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_memorylimit'), array('help' => 'wpsg_mod_downloadplus_memorylimit')); ?>
7824 daniel 74
            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_emptypdf', __('Zusätzlich leeres PDF individualisieren', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_emptypdf'), ['help' => 'wpsg_mod_downloadplus_emptypdf']); ?>
3258 daniel 75
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_timelimit', __('Versuche die Ausführungszeit hochzusetzen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_timelimit'), array('help' => 'wpsg_mod_downloadplus_timelimit')); ?>
3261 daniel 76
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_numberformat', __('Format der Downloadnummer', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_numberformat'), array('help' => 'wpsg_mod_downloadplus_numberformat')); ?>
77
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_startnumber', __('Downloadnummer Startnummer', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_startnumber'), array('help' => 'wpsg_mod_downloadplus_startnumber')); ?>
3268 daniel 78
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_attachement', __('Angepasste Dokumente als Anhang versenden', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_attachement'), array('help' => 'wpsg_mod_downloadplus_attachement')); ?>
5825 daniel 79
 
80
        </div>
81
 
7824 daniel 82
        <div role="tabpanel" class="tab-pane" id="tab5">
83
 
84
            <?php echo $this->render(WPSG_PATH_VIEW.'/mods/mod_downloadplus/settings_edit_templates.phtml'); ?>
85
 
86
        </div>
87
 
5825 daniel 88
        <div role="tabpanel" class="tab-pane" id="tab4">
89
 
90
            <p>
91
				<?php echo __('Das Downloadplus Modul ist eine erweiterung des Downloadprodukt Moduls und ermöglicht das Individualisieren von PDF Dokumenten.', 'wpsg'); ?>
1528 daniel 92
			</p>
1537 daniel 93
			<p>
94
				<?php echo __('Weitere Informationen erhalten Sie auf der <a href="http://wpshopgermany.de/?p=1426">Hilfe Seite</a> oder in unserem <a href="http://forum.maennchen1.de">Support Forum</a>.', 'wpsg'); ?>
95
			</p>
5825 daniel 96
 
1537 daniel 97
			<p>
98
				<?php echo __('Eintrag in der Crontab:', 'wpsg'); ?>:<br /><br />
99
				<span style="font-weight:bold; font-family:monospace;">
7575 daniel 100
					*/5   *   *   *  *    wget -q --spider <?php echo site_url().'/?wpsg_cron=1'; ?>
1537 daniel 101
				</span>
102
			</p>
103
			<p>
104
				<?php echo __('HTTP Aufruf des Cron Scriptes:', 'wpsg'); ?><br /><br />
7400 daniel 105
				<a href="<?php echo site_url(); ?>/?wpsg_cron=1" target="_blank"><?php echo site_url(); ?>/?wpsg_cron=1</a>
5825 daniel 106
			</p>
107
 
108
        </div>
109
 
110
    </div>
1379 daniel 111
</div>
112
 
7824 daniel 113
<script>
1379 daniel 114
 
5825 daniel 115
    jQuery(document).ready(function() {
1379 daniel 116
 
5825 daniel 117
        jQuery('.wpsg_change').on('change', function() {
1379 daniel 118
 
5825 daniel 119
            jQuery('.' + jQuery(this).attr("id")).hide();
120
            jQuery('.' + jQuery(this).attr("id") + '_' + jQuery(this).val()).show();
3349 daniel 121
 
5825 daniel 122
        } ).change();
3349 daniel 123
 
5825 daniel 124
    } );
1379 daniel 125
 
7824 daniel 126
</script>