Changeset 20059 for extensions/Piwecard
- Timestamp:
- Jan 11, 2013, 12:44:10 AM (12 years ago)
- Location:
- extensions/Piwecard
- Files:
-
- 11 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/admin.php
r20047 r20059 5 5 global $template, $conf, $user; 6 6 7 load_language('plugin.lang', ECARD_PATH);7 load_language('plugin.lang', PIWECARD_PATH); 8 8 include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 9 9 … … 21 21 $tabsheet = new tabsheet(); 22 22 foreach ($conf['Ecard_tabs'] as $tab) { 23 $tabsheet->add($tab, l10n('piwecard_admin_'.$tab), ECARD_ADMIN.'-'.$tab);23 $tabsheet->add($tab, l10n('piwecard_admin_'.$tab), PIWECARD_ADMIN.'-'.$tab); 24 24 } 25 25 $tabsheet->select($page['tab']); 26 26 $tabsheet->assign(); 27 27 28 include_once( ECARD_PATH.'/admin/admin_'.$page['tab'].'.php');28 include_once(PIWECARD_PATH.'/admin/admin_'.$page['tab'].'.php'); 29 29 ?> -
extensions/Piwecard/admin/admin_authorizations.php
r20047 r20059 7 7 8 8 $template->set_filenames(array( 9 'plugin_admin_content' => ECARD_ROOT.'/admin/template/admin_authorizations.tpl',9 'plugin_admin_content' => PIWECARD_ROOT.'/admin/template/admin_authorizations.tpl', 10 10 'double_select' => 'double_select.tpl' 11 11 )); … … 35 35 $piwecard->my_config['authorized_cats'] = $_POST['ecard_authorized_cats']; 36 36 $piwecard->set_config(); 37 array_push($page['infos'], l10n(' piwecard_admin_saveOK'));37 array_push($page['infos'], l10n('Information data registered in database')); 38 38 } 39 39 -
extensions/Piwecard/admin/admin_configuration.php
r20047 r20059 58 58 59 59 if (empty($errors)) { 60 array_push($page['infos'], l10n(' piwecard_admin_saveOK'));60 array_push($page['infos'], l10n('Information data registered in database')); 61 61 } else { 62 62 $template->assign('ecard_errors', $errors); … … 81 81 'selected' => (in_array($email_format, $piwecard->my_config['email_format_authorized']) ? 'checked="checked"' : ''), 82 82 'selected_default' => (($piwecard->my_config['email_format_default'] == $email_format) ? 'checked="checked"' : ''), 83 'language_string' => ' ecard_email_format_'.$email_format,83 'language_string' => 'piwecard_email_format_'.$email_format, 84 84 ) 85 85 ); -
extensions/Piwecard/admin/admin_management.php
r20047 r20059 36 36 37 37 //Create the navigation bar (for more than 1 page) 38 $management_url = ECARD_ADMIN.'-management';38 $management_url = PIWECARD_ADMIN.'-management'; 39 39 $ecard_navbar = array(); 40 40 $ecard_navbar = create_navigation_bar($management_url, $piwecard->get_nb_ecard(), $start, $piwecard->my_config['nb_ecard_page']); 41 41 42 $query = 'SELECT * FROM '. ECARD_TABLE.' ORDER BY date_creation DESC LIMIT '.$start.','.$piwecard->my_config['nb_ecard_page'].';';42 $query = 'SELECT * FROM '.PIWECARD_TABLE.' ORDER BY date_creation DESC LIMIT '.$start.','.$piwecard->my_config['nb_ecard_page'].';'; 43 43 $result = pwg_query($query); 44 44 … … 51 51 $template->append('ecard_file',array( 52 52 'id' => $file['id'], 53 ' subject' => $file['subject'],53 'title' => $file['title'], 54 54 'url' => $ecard_url, 55 55 'sender_name' => $file['sender_name'], -
extensions/Piwecard/admin/template/admin_configuration.tpl
r20047 r20059 111 111 <div> 112 112 {foreach from=$ecard_email_format item=ecard_email_format} 113 <span><input type="checkbox" name="ecard_email_format[{$ecard_email_format.id}]" id="ecard_email_format_{$ecard_email_format.id}" value="{$ecard_email_format.id}" {$ecard_email_format.selected}/> <label for="ecard_email_format_{$ecard_email_format.id}">{$ piwecard_email_format.language_string|@translate}</label></span>113 <span><input type="checkbox" name="ecard_email_format[{$ecard_email_format.id}]" id="ecard_email_format_{$ecard_email_format.id}" value="{$ecard_email_format.id}" {$ecard_email_format.selected}/> <label for="ecard_email_format_{$ecard_email_format.id}">{$ecard_email_format.language_string|@translate}</label></span> 114 114 {/foreach} 115 115 </div> … … 119 119 <div> 120 120 {foreach from=$ecard_email_format_default item=ecard_email_format_default} 121 <span id="ecard_form_line_default_{$ecard_email_format_default.id}"><input type="radio" name="ecard_email_format_default" id="ecard_email_format_default_{$ecard_email_format_default.id}" value="{$ecard_email_format_default.id}" {$ecard_email_format_default.selected_default}/> <label for="ecard_email_format_default_{$ecard_email_format_default.id}">{$ piwecard_email_format_default.language_string|@translate}</label></span>121 <span id="ecard_form_line_default_{$ecard_email_format_default.id}"><input type="radio" name="ecard_email_format_default" id="ecard_email_format_default_{$ecard_email_format_default.id}" value="{$ecard_email_format_default.id}" {$ecard_email_format_default.selected_default}/> <label for="ecard_email_format_default_{$ecard_email_format_default.id}">{$ecard_email_format_default.language_string|@translate}</label></span> 122 122 {/foreach} 123 123 <span class="ecard_admin_error" id="ecard_email_format_default_error" style="{$piwecard_errors.email_format_default.style_error_text}">{'piwecard_error'|@translate} {'piwecard_email_format_default_error'|@translate}</span> … … 142 142 <div id="ecard_form_line ecard_parameters_description"> 143 143 <div id="ecard_form_line"> 144 {' piwecard_parameters'|@translate}<br />144 {'Parameters'|@translate}<br /> 145 145 </div> 146 146 <div id="ecard_form_line"> … … 149 149 <span class="ecard_parameters_description_parameter">%recipientname% : </span><span class="ecard_parameters_description_text">{'piwecard_recipient_name'|@translate}</span><br /> 150 150 <span class="ecard_parameters_description_parameter">%recipientemail% : </span><span class="ecard_parameters_description_text">{'piwecard_recipient_email'|@translate}</span><br /> 151 <span class="ecard_parameters_description_parameter">%website% : </span><span class="ecard_parameters_description_text">{' piwecard_website'|@translate}</span><br />151 <span class="ecard_parameters_description_parameter">%website% : </span><span class="ecard_parameters_description_text">{'Gallery title'|@translate}</span><br /> 152 152 <span class="ecard_parameters_description_parameter">%websiteurl% : </span><span class="ecard_parameters_description_text">{'piwecard_website_url'|@translate}</span><br /> 153 153 <span class="ecard_parameters_description_parameter">%ecardurl% : </span><span class="ecard_parameters_description_text">{'piwecard_ecard_url'|@translate}</span><br /> -
extensions/Piwecard/admin/template/admin_management.tpl
r20047 r20059 62 62 <tr class="throw"> 63 63 <td> </td> 64 <td>{' piwecard_title'|@translate}</td>65 <td>{' piwecard_date_creation'|@translate}</td>64 <td>{'Title'|@translate}</td> 65 <td>{'date'|@translate}</td> 66 66 <td>{'piwecard_sender_name'|@translate}</td> 67 67 <td>{'piwecard_recipient_name'|@translate}</td> … … 83 83 </td> 84 84 <td> 85 <a href="{$ecard_file.url}">{$ecard_file. subject}</a>85 <a href="{$ecard_file.url}">{$ecard_file.title}</a> 86 86 </td> 87 87 <td> -
extensions/Piwecard/css/piwecard.css
r20032 r20059 9 9 #addECardForm .ecard_field { 10 10 padding-bottom: 0.5em; 11 clear: both; 12 vertical-align:middle; 11 13 } 12 14 -
extensions/Piwecard/include/config_param.inc.php
r19956 r20059 12 12 '%websiteurl%' => get_absolute_root_url() , 13 13 '%ecardurl%' => isset($image_element['ecard_url']) ? $image_element['ecard_url'] : '' , 14 '%ecard subject%' => isset($_POST['ecard_subject']) ? $_POST['ecard_subject'] : '' ,14 '%ecardtitle%' => isset($_POST['ecard_title']) ? $_POST['ecard_title'] : '' , 15 15 '%ecardmessage%' => isset($_POST['ecard_message']) ? $_POST['ecard_message'] : '' , 16 16 '%pictureurl%' => DerivativeImage::thumb_url($image_element) , 17 '%pictureinfos%' 17 '%pictureinfos%' => isset($image_element['picture_infos']) ? $image_element['picture_infos'] : '' , 18 18 ); 19 19 -
extensions/Piwecard/include/piwecard.class.php
r20047 r20059 27 27 // Initialize default values of params 28 28 private function get_default_config() { 29 require( ECARD_INSTALL_PATH.'default_values.inc.php');29 require(PIWECARD_INSTALL_PATH.'default_values.inc.php'); 30 30 foreach ($ecard_default_values as $key => $value) { 31 31 if (!isset($this->my_config[$key])) … … 66 66 67 67 function parse($data, $_POST = NULL, $image_element = NULL) { 68 include ( ECARD_PATH.'include/config_param.inc.php');68 include (PIWECARD_PATH.'include/config_param.inc.php'); 69 69 70 70 $patterns = array(); … … 80 80 // Get the number of ecard in the database 81 81 function get_nb_ecard() { 82 $query = 'SELECT COUNT(DISTINCT id) AS nb FROM '. ECARD_TABLE.' ORDER BY date_creation;';82 $query = 'SELECT COUNT(DISTINCT id) AS nb FROM '.PIWECARD_TABLE.' ORDER BY date_creation;'; 83 83 $result = pwg_query($query); 84 84 … … 92 92 // Get the number of valid ecard in the database 93 93 function get_nb_valid_ecard() { 94 $query = 'SELECT COUNT(DISTINCT id) AS nb FROM '. ECARD_TABLE.' WHERE date_validity IS NULL OR date_validity > NOW();';94 $query = 'SELECT COUNT(DISTINCT id) AS nb FROM '.PIWECARD_TABLE.' WHERE date_validity IS NULL OR date_validity > NOW();'; 95 95 $result = pwg_query($query); 96 96 … … 106 106 function get_ecard($ecard_id = null) { 107 107 if ($ecard_id!== null) { 108 $query = 'SELECT * FROM ' . ECARD_TABLE .' WHERE id ="' . $ecard_id . '" LIMIT 1;';108 $query = 'SELECT * FROM ' . PIWECARD_TABLE .' WHERE id ="' . $ecard_id . '" LIMIT 1;'; 109 109 110 110 $result = pwg_query($query); … … 144 144 function delete_ecard($ecard_id = null) { 145 145 if (isset($ecard_id)) { 146 $query = 'DELETE FROM ' . ECARD_TABLE .' WHERE id="' . $ecard_id . '";';146 $query = 'DELETE FROM ' . PIWECARD_TABLE .' WHERE id="' . $ecard_id . '";'; 147 147 pwg_query($query); 148 148 } else … … 152 152 // Delete all invalid ecard 153 153 function delete_allinvalid_ecard() { 154 $query = 'DELETE FROM ' . ECARD_TABLE .' WHERE date_validity < NOW();';154 $query = 'DELETE FROM ' . PIWECARD_TABLE .' WHERE date_validity < NOW();'; 155 155 pwg_query($query); 156 156 } … … 223 223 // Template informations 224 224 $template->assign('ecard', array( 225 ' subject' => l10n('piwecard_subject'),225 'title' => l10n('Title'), 226 226 'message' => l10n('piwecard_message'), 227 227 'sender_name' => $user['username'], … … 249 249 $template->append('ecard_email_format', array( 250 250 'id' => $email_format, 251 'name' => l10n('piwecard_ mail_format_'.$email_format),251 'name' => l10n('piwecard_email_format_'.$email_format), 252 252 'selected' => (($this->my_config['email_format_default'] == $email_format) ? '' : 'checked'), 253 253 ) … … 290 290 'sender_email' => $_POST['ecard_sender_email'], 291 291 'recipient_email' => $_POST['ecard_recipient_email'], 292 ' subject' => $_POST['ecard_subject'],292 'title' => $_POST['ecard_title'], 293 293 'message' => $_POST['ecard_message'], 294 294 'image' => $image_element['id'], … … 300 300 $insert['date_validity'] = $date->format('Y-m-d H:i:s'); 301 301 } 302 single_insert( ECARD_TABLE, $insert);302 single_insert(PIWECARD_TABLE, $insert); 303 303 304 304 // Complete the image_element array with Link for the ecard url to be added in the mail … … 352 352 } 353 353 354 $template->set_filenames(array('ecard_template' => ECARD_ROOT.'/template/ecard.tpl'));354 $template->set_filenames(array('ecard_template' => PIWECARD_ROOT.'/template/ecard.tpl')); 355 355 $template->concat('COMMENT_IMG', $template->parse('ecard_template', true)); 356 356 } -
extensions/Piwecard/include/publish.inc.php
r20032 r20059 10 10 11 11 if (isset($ecard_id) and $ecard_id != '' and $ecard->is_valid($ecard_id)) { 12 $query = 'SELECT * FROM '. ECARD_TABLE.' WHERE id = "'.$ecard_id.'";';12 $query = 'SELECT * FROM '.PIWECARD_TABLE.' WHERE id = "'.$ecard_id.'";'; 13 13 $result = pwg_query($query); 14 14 $result_array = pwg_db_fetch_assoc($result); … … 32 32 //Assign variables to template 33 33 $template->assign('ecard', array( 34 ' subject' => $result_array['subject'],34 'title' => $result_array['title'], 35 35 'image' => $result_array['image'], 36 36 'message' => $result_array['message'], … … 46 46 } 47 47 } 48 $template->set_filenames(array('ecard_result' => ECARD_ROOT.'/template/publish.tpl'));48 $template->set_filenames(array('ecard_result' => PIWECARD_ROOT.'/template/publish.tpl')); 49 49 $template->concat('PLUGIN_INDEX_CONTENT_BEGIN', $template->parse('ecard_result', true)); 50 50 -
extensions/Piwecard/install/default_values.inc.php
r20047 r20059 25 25 '<p>Bonjour %recipientname% !</p> 26 26 <p><b>%yourname%</b> vous a envoyé une eCard depuis le site <a href="%websiteurl%">%website%</a> :</p> 27 <p><b>%ecard subject%</b></p>27 <p><b>%ecardtitle%</b></p> 28 28 <p><a href="%ecardurl%"><img class="theImage" src="%pictureurl%" /></a><p> 29 29 <p>%pictureinfos%</p><br /> -
extensions/Piwecard/install/functions.inc.php
r19968 r20059 7 7 recipient_name CHAR(100) NOT NULL, 8 8 recipient_email CHAR(100) NOT NULL, 9 subjectCHAR(100) NOT NULL,9 title CHAR(100) NOT NULL, 10 10 message TEXT NOT NULL, 11 11 image MEDIUMINT(8) NOT NULL, … … 33 33 'recipient_name' => $data['nomdest'], 34 34 'recipient_email' => $data['adrdest'], 35 ' subject' => $data['sujet'],35 'title' => $data['sujet'], 36 36 'message' => $data['message'], 37 37 'image' => $data['image'], -
extensions/Piwecard/language/en_UK/plugin.lang.php
r20058 r20059 1 1 <?php 2 2 $lang['piwecard_plugin'] = 'Piwecard Plugin'; 3 4 //Admin pages5 $lang['piwecard_admin_saveOK'] = 'Your data have been saved in the database';6 3 7 4 //admin.php … … 12 9 //admin_authorizations.php 13 10 $lang['piwecard_selected_cats'] = 'Selected categories'; 14 $lang['piwecard_non_selected_cats'] 11 $lang['piwecard_non_selected_cats'] = 'Non selected categories'; 15 12 16 13 //admin_authorizations.tpl … … 39 36 $lang['piwecard_email_message_text'] = 'Message when the e-mail format is text'; 40 37 $lang['piwecard_email_message_html'] = 'Message when the e-mail format is HTML'; 41 $lang['piwecard_parameters'] = 'Parameters';42 38 $lang['piwecard_sender_name'] = 'Sender name'; 43 39 $lang['piwecard_sender_email'] = 'Sender e-mail'; 44 40 $lang['piwecard_recipient_name'] = 'Recipient name'; 45 41 $lang['piwecard_recipient_email'] = 'Recipient e-mail'; 46 $lang['piwecard_website'] = 'Name of the gallery';47 42 $lang['piwecard_website_url'] = 'Gallery URL'; 48 43 $lang['piwecard_ecard_url'] = 'Ecard URL'; … … 60 55 $lang['piwecard_nb_ecard_valid_total'] = '%nb_valid% valid e-cards out of %nb_total% e-cards'; 61 56 $lang['piwecard_delete_all_invalid'] = 'Delete all expired e-card'; 62 $lang['piwecard_title'] = 'Title';63 $lang['piwecard_date_creation'] = 'Date';64 $lang['piwecard_sender_name'] = 'Sender';65 $lang['piwecard_recipient_name'] = 'Recipient';66 57 $lang['piwecard_validity'] = 'Validity date'; 67 $lang['piwecard_delete'] = 'Delete';68 58 $lang['piwecard_deleted'] = 'Selected e-cards have been deleted.'; 69 59 $lang['piwecard_invalid_deleted'] = 'All expired e-cards have been deleted.'; … … 82 72 $lang['piwecard_error_integer'] = 'Please enter a valid number.'; 83 73 $lang['piwecard_errors'] = 'See detail of errors below'; 84 $lang['piwecard_send_title'] = 'Title';85 $lang['piwecard_send_message'] = 'Message';86 74 $lang['piwecard_sender'] = 'Sender'; 87 75 $lang['piwecard_recipient'] = 'Recipient'; … … 96 84 97 85 //piwecard.class.php 98 $lang['piwecard_subject'] = 'e-mail subject';99 86 $lang['piwecard_message'] = 'Message'; 100 87 $lang['piwecard_recipient_name'] = 'Recipient name'; -
extensions/Piwecard/main.inc.php
r20010 r20059 14 14 define('ECARD_VERSION', '1.1.0'); 15 15 16 define(' ECARD_ROOT', dirname(__FILE__));17 define(' ECARD_DIR', basename(dirname(__FILE__)));18 define(' ECARD_PATH', PHPWG_PLUGINS_PATH.ECARD_DIR.'/');19 define(' ECARD_INC_PATH', PHPWG_PLUGINS_PATH .ECARD_DIR . '/include/');20 define(' ECARD_INSTALL_PATH', PHPWG_PLUGINS_PATH .ECARD_DIR . '/install/');21 define(' ECARD_TABLE', $prefixeTable . 'piwecard');22 define(' ECARD_ADMIN', get_root_url() . 'admin.php?page=plugin-'.ECARD_DIR);16 define('PIWECARD_ROOT', dirname(__FILE__)); 17 define('PIWECARD_DIR', basename(dirname(__FILE__))); 18 define('PIWECARD_PATH', PHPWG_PLUGINS_PATH.PIWECARD_DIR.'/'); 19 define('PIWECARD_INC_PATH', PHPWG_PLUGINS_PATH . PIWECARD_DIR . '/include/'); 20 define('PIWECARD_INSTALL_PATH', PHPWG_PLUGINS_PATH . PIWECARD_DIR . '/install/'); 21 define('PIWECARD_TABLE', $prefixeTable . 'piwecard'); 22 define('PIWECARD_ADMIN', get_root_url() . 'admin.php?page=plugin-'.PIWECARD_DIR); 23 23 24 load_language('plugin.lang', ECARD_PATH);24 load_language('plugin.lang', PIWECARD_PATH); 25 25 26 include_once( ECARD_INC_PATH.'piwecard.class.php');26 include_once(PIWECARD_INC_PATH.'piwecard.class.php'); 27 27 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 28 28 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); … … 30 30 31 31 // Load language files 32 load_language('plugin.lang', ECARD_PATH);32 load_language('plugin.lang', PIWECARD_PATH); 33 33 34 34 $piwecard = new Piwecard(); … … 55 55 $menu, array( 56 56 'NAME' => 'Piwecard', 57 'URL' => ECARD_ADMIN,57 'URL' => PIWECARD_ADMIN, 58 58 ) 59 59 ); … … 69 69 70 70 if (defined('IN_ADMIN') and IN_ADMIN) 71 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'. ECARD_PATH . 'css/admin.css">');71 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.PIWECARD_PATH . 'css/admin.css">'); 72 72 73 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'. ECARD_PATH . 'css/piwecard.css">');73 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.PIWECARD_PATH . 'css/piwecard.css">'); 74 74 } 75 75 ?> -
extensions/Piwecard/template/ecard.tpl
r20047 r20059 10 10 height:"90%", 11 11 onComplete:function(){ 12 jQuery("input[name=ecard_subject]").focus();12 13 13 } 14 14 }); … … 18 18 }); 19 19 }); 20 21 function ecard_clearDefaultText(element, defaultText) {22 if (element.value == defaultText) {23 element.value = '';24 }25 }26 20 27 21 function ecard_checkField(element, elementType) { … … 60 54 61 55 function ecard_checkForm(form) { 62 var subjectOK = ecard_checkField(form.ecard_subject, 0);56 var titleOK = ecard_checkField(form.ecard_title, 0); 63 57 var messageOK = ecard_checkField(form.ecard_message, 0); 64 58 var senderNameOK = ecard_checkField(form.ecard_sender_name, 0); … … 67 61 var recipientEMailOK = ecard_checkField(form.ecard_recipient_email, 1); 68 62 69 if( subjectOK && messageOK && senderNameOK && senderEMailOK && recipientNameOK && recipientEMailOK)63 if(titleOK && messageOK && senderNameOK && senderEMailOK && recipientNameOK && recipientEMailOK) 70 64 return true; 71 65 else … … 74 68 {/literal}{/footer_script} 75 69 70 </p> 76 71 <div style="display:none"> 77 72 <div id="addECardForm"> … … 80 75 <legend>{'piwecard_send_stage1'|@translate}</legend> 81 76 <div class="ecard_field"> 82 <div class="ecard_error" id="ecard_subject_error">{'piwecard_error'|@translate} {'piwecard_error_text'|@translate}</div> 83 <div class="ecard_error" id="ecard_message_error">{'piwecard_error'|@translate} {'piwecard_error_text'|@translate}</div> 84 <span class="ecard_label">{'piwecard_send_title'|@translate}<span class="ecard_mandatory_fields">*</span> :</span> 85 <span class="ecard_input_right"><input name="ecard_subject" type="text" id="ecard_subject" value="{$ecard.subject}" onfocus="ecard_clearDefaultText(this, '{$ecard.subject}');" title="{$ecard.subject}"></span> 77 <div class="ecard_error" id="ecard_title_error">{'piwecard_error'|@translate} {'piwecard_error_text'|@translate}</div> 78 <span class="ecard_label">{'Title'|@translate}<span class="ecard_mandatory_fields">*</span> :</span> 79 <span class="ecard_input_right"><input name="ecard_title" type="text" id="ecard_title" value="{$ecard.title}" title="{$ecard.title}"></span> 86 80 </div> 87 81 <div class="ecard_field"> 88 <span class="ecard_label">{'piwecard_send_message'|@translate}<span class="ecard_mandatory_fields">*</span> :</span> 89 <span class="ecard_input_right"><textarea name="ecard_message" id="ecard_message" value="{$ecard.message}" onfocus="ecard_clearDefaultText(this, '{$ecard.message}');" title="{$ecard.message}">{$ecard.message}</textarea></span> 82 <div class="ecard_error" id="ecard_message_error">{'piwecard_error'|@translate} {'piwecard_error_text'|@translate}</div> 83 <span class="ecard_label">{'piwecard_message'|@translate}<span class="ecard_mandatory_fields">*</span> :</span> 84 <span class="ecard_input_right"><textarea name="ecard_message" id="ecard_message" value="{$ecard.message}" title="{$ecard.message}">{$ecard.message}</textarea></span> 90 85 </div> 91 86 </fieldset> … … 96 91 <div class="ecard_error" id="ecard_sender_email_error">{'piwecard_error'|@translate} {'piwecard_error_email'|@translate}</div> 97 92 <span class="ecard_label">{'piwecard_sender'|@translate}<span class="ecard_mandatory_fields">*</span> :</span> 98 <span class="ecard_name"><input name="ecard_sender_name" type="text" id="ecard_sender_name" maxlength="100" value="{$ecard.sender_name}" ></span>99 <span class="ecard_email"><input name="ecard_sender_email" type="text" id="ecard_sender_email" maxlength="100" {$ecard.changemail} value="{$ecard.sender_email}" on focus="ecard_clearDefaultText(this, '{$ecard.sender_email}');" onblur="ecard_checkField(this, 1);"></span>93 <span class="ecard_name"><input name="ecard_sender_name" type="text" id="ecard_sender_name" maxlength="100" value="{$ecard.sender_name}" onfocus="ecard_clearDefaultText(this, '{$ecard.sender_name}');"></span> 94 <span class="ecard_email"><input name="ecard_sender_email" type="text" id="ecard_sender_email" maxlength="100" {$ecard.changemail} value="{$ecard.sender_email}" onblur="ecard_checkField(this, 1);"></span> 100 95 </div> 101 96 <div class="ecard_field"> … … 103 98 <div class="ecard_error" id="ecard_recipient_email_error">{'piwecard_error'|@translate} {'piwecard_error_email'|@translate}</div> 104 99 <span class="ecard_label">{'piwecard_recipient'|@translate}<span class="ecard_mandatory_fields">*</span> :</span> 105 <span class="ecard_name"><input name="ecard_recipient_name" type="text" id="ecard_recipient_name" maxlength="100" value="{$ecard.recipient_name}" onfocus="ecard_clearDefaultText(this, '{$ecard.recipient_name}');"></span>106 <span class="ecard_email"><input name="ecard_recipient_email" type="text" id="ecard_recipient_email" maxlength="100" value="{$ecard.recipient_email}" on focus="ecard_clearDefaultText(this, '{$ecard.recipient_email}');" onblur="ecard_checkField(this, 1);"></span>100 <span class="ecard_name"><input name="ecard_recipient_name" type="text" id="ecard_recipient_name" maxlength="100" value="{$ecard.recipient_name}"></span> 101 <span class="ecard_email"><input name="ecard_recipient_email" type="text" id="ecard_recipient_email" maxlength="100" value="{$ecard.recipient_email}" onblur="ecard_checkField(this, 1);"></span> 107 102 </div> 108 103 </fieldset> … … 146 141 <p> 147 142 <a href="#" class="createECardOpen" title="{'piwecard_send_link'|@translate}">{'piwecard_send_link'|@translate}</a> 148 </p> 143 </p><p> -
extensions/Piwecard/template/publish.tpl
r20047 r20059 4 4 {else} 5 5 <fieldset> 6 <legend id="ecard_legend">{$ecard. subject}</legend>6 <legend id="ecard_legend">{$ecard.title}</legend> 7 7 <div class="ecard_center"> 8 8 <a href="{$ecard.url}" alt="{$ecard.url}">
Note: See TracChangeset
for help on using the changeset viewer.