File manager - Edit - /home/jardides/www/Jardi-design/j37/plugins/pagebuilderck/contact/layouts/edit_contact.php
Back
<?php /** * @name Page Builder CK * @package com_pagebuilderck * @copyright Copyright (C) 2015. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr */ defined('_JEXEC') or die; $input = new JInput(); $id = $input->get('ckid', '', 'string'); $contact_modaledition_url = JUri::root(true) . "/administrator/index.php?option=com_contact&task=contact.edit&view=contact&layout=modal&tmpl=component&id="; ?> <div id="elementscontainer"> <div class="menulink current" tab="tab_contact"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_FORM_EDITION'); ?></div> <div class="menulink" tab="tab_blocstyles"><?php echo JText::_('CK_STYLES'); ?></div> <div class="menulink" tab="tab_rowstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_ROW_STYLE'); ?></div> <div class="menulink" tab="tab_labelstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_LABEL_STYLE'); ?></div> <div class="menulink" tab="tab_inputstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INPUT_STYLE'); ?></div> <div class="menulink" tab="tab_inputfocusstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INPUT_FOCUS_STYLE'); ?></div> <div class="menulink" tab="tab_buttonstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_BUTTON_STYLE'); ?></div> <div class="menulink" tab="tab_buttonhoverstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_BUTTON_HOVER_STYLE'); ?></div> <div class="clr"></div> <div id="elementscontent"> <div class="tab menustyles current ckproperty" id="tab_contact"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylesblock" style="width:850px;"> <div class="menustylesblocktitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_EDITION'); ?></div> <div class="menustylesblockaccordion"> <div> <a class="ckbuttonstyle" href="javascript:void(0)" onclick="CKBox.open({url: URIROOT + '/administrator/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&function=ckSelectContact', style: {padding: '10px'}})"><?php echo JText::_('CK_SELECT'); ?></a> <a class="ckbuttonstyle" href="javascript:void(0)" onclick="ckOpenContactEditionPopup()"><?php echo JText::_('CK_EDIT') ?></a> <input class="inputbox" type="hidden" value="" name="contactid" id="contactid" style="width:100px;" onchange="ckSetContactOptions()" /> <input class="inputbox" type="text" value="" name="contactname" id="contactname" style="width:250px;" disabled /> </div> </div> <div class="menustylesblocktitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_DESIGN'); ?></div> <div class="menustylesblockaccordion"> <div class="menupaneblock"> <div class="menupaneblock"> <div class="menupanetitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_LAYOUT'); ?></div> <select class="inputbox" type="list" value="" name="contactcklayout" id="contactcklayout" style="width:90%; min-width: 200px; clear:both;" onchange="ckSetContactOptions()" > <option value="horizontal"><?php echo JText::_('CK_HORIZONTAL'); ?></option> <option value="vertical"><?php echo JText::_('CK_VERTICAL'); ?></option> </select> <div style="text-align:left;float: left;"> <div style="text-align:left;float: left;"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_LABELS_WIDTH'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>width.png" width="15" height="15" align="top" /></div><div style="text-align:left;float: left;"><input class="inputboxfake" type="text" value="" name="contactcklabelswidth" id="contactcklabelswidth" style="width:100px;" onchange="ckSetContactOptions()" /></div> <div style="text-align:left;float: left;"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_FIELDS_WIDTH'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>width.png" width="15" height="15" align="top" /></div><div style="text-align:left;float: left;"><input class="inputboxfake" type="text" value="" name="contactckinputswidth" id="contactckinputswidth" style="width:100px;" onchange="ckSetContactOptions()" /></div> </div> <div class="clr"></div> <div class="menupanetitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_SHOW_LABELS'); ?></div> <select class="inputbox" type="list" value="" name="contactckshowlabels" id="contactckshowlabels" style="width:90%; min-width: 200px; clear:both;" onchange="ckSetContactOptions()" > <option value="1"><?php echo JText::_('JYES'); ?></option> <option value="0"><?php echo JText::_('JNO'); ?></option> <option value="placeholder"><?php echo JText::_('PLG_PAGEBUILDERCK_LABEL_IN_PLACEHOLDER'); ?></option> </select> <div class="menupanetitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_BUTTON_ALIGN'); ?></div> <div style="text-align:left;"> <div style="margin:5px 0 0 0px;" class="btn-group"> <div style="float:left;margin:0px 0px 0 2px;"><input type="radio" class="inputbox" name="buttonalignement" id="buttonalignementleft" onclick="ckSetAlignButton()" value="left" style="width:16px;border:none;margin:0 2px;display:none;" /><label for="buttonalignementleft" class="btn"><img src="<?php echo $this->imagespath; ?>text_align_left.png" width="16" height="16" /></label></div> <div style="float:left;margin:0px 5px 0 2px;"></div> <div style="float:left;margin:0px 0px 0 2px;"><input type="radio" class="inputbox" name="buttonalignement" id="buttonalignementcenter" onclick="ckSetAlignButton()" value="center" style="width:16px;border:none;margin:0 2px;display:none;" /><label for="buttonalignementcenter" class="btn"><img src="<?php echo $this->imagespath; ?>text_align_center.png" width="16" height="16" /></label></div> <div style="float:left;margin:0px 5px 0 2px;"></div> <div style="float:left;margin:0px 0px 0 2px;"><input type="radio" class="inputbox" name="buttonalignement" id="buttonalignementright" onclick="ckSetAlignButton()" value="right" style="width:16px;border:none;margin:0 2px;display:none;" /><label for="buttonalignementright" class="btn"><img src="<?php echo $this->imagespath; ?>text_align_right.png" width="16" height="16" /></label></div> <div style="float:left;margin:0px 5px 0 2px;"></div> </div> </div> </div> </div> </div> </div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_blocstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <?php echo $this->menustyles->createBlocStyles('bloc', 'contact', '') ?> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_labelstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylescustom" data-prefix="contactcklabels" data-rule=".contactck label"><?php echo $this->menustyles->createBlocStyles('contactcklabels') ?></div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_rowstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylescustom" data-prefix="contactckrows" data-rule=".contactck .contactck-group"><?php echo $this->menustyles->createBlocStyles('contactckrows') ?></div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_inputstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylescustom" data-prefix="contactckinputs" data-rule=".contactck input|.contactck textarea"><?php echo $this->menustyles->createBlocStyles('contactckinputs') ?></div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_inputfocusstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylescustom" data-prefix="contactckinputsfocus" data-rule=".contactck input:focus|.contactck textarea:focus"><?php echo $this->menustyles->createBlocStyles('contactckinputsfocus') ?></div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_buttonstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylescustom" data-prefix="contactckbuttons" data-rule=".contactck .contactck-button"><?php echo $this->menustyles->createBlocStyles('contactckbuttons', '', $expert = false, $showlinks = false, '', $showtext = true, $showdimensions = true, $showdecoration = true, $showshadow = true, $showmargins = true) ?></div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_buttonhoverstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menustylescustom" data-prefix="contactckbuttonshover" data-rule=".contactck .contactck-button:hover"><?php echo $this->menustyles->createBlocStyles('contactckbuttonshover', '', $expert = false, $showlinks = false, '', $showtext = true, $showdimensions = true, $showdecoration = true, $showshadow = true, $showmargins = true) ?></div> </td> </tr> </table> <div class="clr"></div> </div> </div> </div> <div id="previewarea" class="clearfix"> <div class="previewareatitle"><?php echo JText::_('CK_PREVIEWAREA_TITLE'); ?></div> <div id="previewareabloc" class=""> <div class="ckstyle"> </div> <div class="inner"> <div class="contactck verticalck"> <form id="contactck<?php echo $id ?>" action="javascript:void(0)" method="post" class="form-validate form-horizontal"> <fieldset> <legend><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></legend> <div class="contactck-group clearfix"> <div class="contactck-label"> <label id="contactck<?php echo $id ?>_name-lbl" class="required" title="" for="contactck<?php echo $id ?>_name" > Name <span class="star"> *</span> </label> </div> <div class="contactck-field"> <input id="contactck<?php echo $id ?>_name" class="required" type="text" aria-required="true" required="" size="30" value="" name="contactck<?php echo $id ?>_name"> </div> </div> <div class="contactck-group clearfix"> <div class="contactck-label"> <label id="contactck<?php echo $id ?>_email-lbl" class="required" title="" for="contactck<?php echo $id ?>_email" > E-mail <span class="star"> *</span> </label> </div> <div class="contactck-field"> <input id="contactck<?php echo $id ?>_email" class="validate-email required" type="email" aria-required="true" required="" size="30" value="" name="contactck<?php echo $id ?>_email"> </div> </div> <div class="contactck-actions"> <button class="btn contactck-button" type="submit" onclick="javascript:void(0)"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></button> </div> </fieldset> </form> </div> </div> </div> </div> <div class="clr"></div> <script language="javascript" type="text/javascript"> function ckLoadEditionPopup() { var focus = $ck('.editfocus'); $ck('#previewareabloc > .inner').html(focus.find('.contactck')[0].outerHTML); ckFillEditionPopup(focus.attr('id')); ckSetAlignButton(); } function ckBeforeSaveEditionPopup() { var focus = $ck('.editfocus'); focus.find('> .inner').html($ck('#previewareabloc .contactck')[0].outerHTML); ckSaveEditionPopup(focus.attr('id')); } function jSelectContact(id, name) { $ck('#popup_editionck #contactid').val(id); $ck('#popup_editionck #contactname').val(name); CKBox.close(); } function ckSetAlignButton() { var align = $ck('input[name="buttonalignement"]:checked').val(); $ck('#previewareabloc .contactck-actions').css('text-align', align); } function ckOpenContactEditionPopup() { if (! $ck('#popup_editionck #contactid').val()) { alert('<?php echo JText::_('PLG_PAGEBUILDERCK_SELECT_CONTACT_FIRST', true) ?>'); return; } ckOpenContactIframe($ck('#popup_editionck #contactid').val()); } function ckOpenContactIframe(id) { ckLoadIframeEdition('<?php echo $contact_modaledition_url ?>'+id, 'ckeditioncontactpopup', 'contact.apply', 'contact.cancel'); // ckLoadIframeEdition("<?php echo JUri::root(true) ?>/administrator/index.php?option=com_contact&task=contact.add&tmpl=component&layout=modal", 'ckeditioncontactpopup', 'contact.apply', 'contact.cancel'); } function ckSetContactOptions() { var focus = $ck('.editfocus'); if ($ck('#contactckshowlabels').val() == 'placeholder') { jQuery('.editfocus .contactck-field,#previewareabloc .contactck-field').each(function() { jQuery(this).find('input, textarea').attr('placeholder', jQuery(this).attr('data-placeholder')); }); } else { jQuery('.editfocus .contactck-field,#previewareabloc .contactck-field').each(function() { jQuery(this).find('input, textarea').attr('placeholder', ''); }); } if ($ck('#contactckshowlabels').val() == '1') { $ck('#previewareabloc .contactck-label').show(); } else { $ck('#previewareabloc .contactck-label').hide(); } if ($ck('#contactcklayout').val() == 'horizontal') { $ck('#previewareabloc .contactck').removeClass('verticalck'); focus.removeClass('verticalck'); } else { $ck('#previewareabloc .contactck').addClass('verticalck'); focus.addClass('verticalck'); } $ck('#previewareabloc .contactck-label').width($ck('#contactcklabelswidth').val()); $ck('.contactck-label', focus).width($ck('#contactcklabelswidth').val()); $ck('#previewareabloc .contactck-field').width($ck('#contactckinputswidth').val()); $ck('.contactck-field', focus).width($ck('#contactckinputswidth').val()); } function ckSelectContact(id, name, c, d, url) { $ck('#contactid').val(id); $ck('#contactname').val(name); CKBox.close(); } ckInitOptionsTabs(); ckInitColorPickers(); ckInitAccordions(); </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings