Page MenuHomeIn-Portal Phabricator

advanced
No OneTemporary

File Metadata

Created
Mon, Jan 6, 5:03 AM

advanced

Index: branches/1.3.x/in-link/links/suggest_link.tpl
===================================================================
--- branches/1.3.x/in-link/links/suggest_link.tpl (revision 15664)
+++ branches/1.3.x/in-link/links/suggest_link.tpl (revision 15665)
@@ -1,111 +1,104 @@
<!--##
<NAME>Link Suggest</NAME>
<DESC>Link Suggest Form</DESC>
<SECTION>Platform||Links</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_SuggestLink" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_SuggestLink" templates="in-link/links/suggest_link" show_category="1"/>
</div>
<div class="movable-element">
<!-- suggest link -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_SuggestLink"/>
</inp2:m_Capture>
<inp2:m_if check="l_HasPermission" permissions="LINK.ADD|LINK.ADD.PENDING">
<inp2:l_PresetFormFields/>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="l_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<form method="post" action="<inp2:m_FormAction/>" enctype="multipart/form-data">
<table class="form-data fullwidth">
<tr><td colspan="2"><inp2:m_RenderElement name="subsection" title="lu_section_LinkDetails" break=""/></td></tr>
<!--## SHOW PRIMARY CATEGORY ##-->
<inp2:m_RenderElement name="inp_pr_category_label" prefix="l" field="PrimaryCat" title="lu_fld_SubmittingTo"/>
<!--## //SHOW PRIMARY CATEGORY ##-->
<inp2:m_RenderElement name="inp_edit_box_ml" prefix="l" field="Name" title="lu_fld_Name" maxlength="50" style="width:400px"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="l" field="Url" title="lu_fld_Url" maxlength="255" style="width:400px"/>
<inp2:m_RenderElement name="inp_edit_textarea_ml" prefix="l" field="Description" cols="80" rows="7" title="lu_fld_Description" style="width:400px" is_last="1"/>
<inp2:m_RenderElement name="inp_edit_categories" prefix="l" field="MoreCategories" title="lu_fld_MoreCategories"/>
<tr><td colspan="2"><br/><inp2:m_RenderElement name="subsection" title="lu_section_Images" break=""/></td></tr>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="l" field="PrimaryImage" title="lu_fld_PrimaryImage"/>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="l" field="Image1" title="lu_fld_Image1"/>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="l" field="Image2" title="lu_fld_Image2" is_last="1"/>
<tr><td colspan="2"><br/><inp2:m_RenderElement name="subsection" title="lu_section_Files" break=""/></td></tr>
<inp2:m_RenderElement name="inp_edit_file_upload" prefix="l" field="File1" title="lu_fld_File1"/>
<inp2:m_RenderElement name="inp_edit_file_upload" prefix="l" field="File2" title="lu_fld_File2"/>
<inp2:m_RenderElement name="inp_edit_file_upload" prefix="l" field="File3" title="lu_fld_File3" is_last="1"/>
<inp2:m_if check="m_ConfigEquals" name="Link_EnhancedLinks" value="1">
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="l" field="ListingTypeId" title="lu_fld_ListingType"/>
- <td class="field-value">
- <inp2:m_if check="l_HasError" field="ListingTypeId">
- <span class="field-error"><inp2:l_Error field="ListingTypeId"/></span><br />
- </inp2:m_if>
-
- <inp2:m_include template="in-link/elements/enhancements.elm"/>
-
- <table>
- <inp2:l_PredefinedOptions prefix="l" field="ListingTypeId" render_as="suggest_listing_type_element" selected="checked"/>
- </table>
- </td>
- </tr>
+ <inp2:m_RenderElement design="form_row" prefix="l" field="ListingTypeId" title="lu_fld_ListingType" is_last="1">
+ <inp2:m_include template="in-link/elements/enhancements.elm"/>
+
+ <table>
+ <inp2:l_PredefinedOptions prefix="l" field="ListingTypeId" render_as="suggest_listing_type_element" selected="checked"/>
+ </table>
+ </inp2:m_RenderElement>
</inp2:m_if>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="suggest_confirm_template" value="in-link/links/suggest_confirm"/>
<input type="hidden" name="suggest_pending_confirm_template" value="in-link/links/suggest_pending_confirm"/>
<input type="hidden" name="shop_cart_template" value="in-commerce/checkout/shop_cart"/>
<input class="button" type="submit" name="events[l][OnCreate]" value="<inp2:m_Phrase label="lu_btn_Create" no_editing="1"/>"/>
<input class="button" type="reset" name="events[l][OnReset]" value="<inp2:m_Phrase label="lu_btn_Reset" no_editing="1"/>"/>
</inp2:m_RenderElement>
</table>
</form>
<inp2:m_else/>
<inp2:m_phrase name="lu_text_NoSuggestLinkPermission"/>
</inp2:m_if>
</inp2:m_RenderElement>
<!-- // suggest link -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/in-link/links/modify_link.tpl
===================================================================
--- branches/1.3.x/in-link/links/modify_link.tpl (revision 15664)
+++ branches/1.3.x/in-link/links/modify_link.tpl (revision 15665)
@@ -1,122 +1,119 @@
<!--##
<NAME>Link Modify</NAME>
<DESC>Link Modify Form</DESC>
<SECTION>Platform||Links</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_ModifyLink" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/action_box.elm" item_actions="1" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ModifyLink" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,in-link/links/modify_link"/>
</div>
<div class="movable-element">
<!-- modify link -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_ModifyLink"/>
</inp2:m_Capture>
<inp2:m_if check="l_HasPermission" permissions="LINK.MODIFY|LINK.MODIFY.PENDING|LINK.OWNER.MODIFY|LINK.OWNER.MODIFY.PENDING">
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="l_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<form method="post" action="<inp2:m_FormAction/>" enctype="multipart/form-data">
<table class="form-data fullwidth">
<tr><td colspan="2"><inp2:m_RenderElement name="subsection" title="lu_section_LinkDetails" break=""/></td></tr>
<inp2:m_RenderElement name="inp_edit_box_ml" prefix="l" field="Name" title="lu_fld_Name" maxlength="50" style="width:400px"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="l" field="Url" title="lu_fld_Url" maxlength="255" style="width:400px"/>
<!--## SHOW PRIMARY CATEGORY ##-->
<inp2:m_RenderElement name="inp_pr_category_label" prefix="l" field="PrimaryCat" title="lu_fld_PrimaryCategory" editing="1"/>
<!--## //SHOW PRIMARY CATEGORY ##-->
<inp2:m_RenderElement name="inp_edit_categories" prefix="l" field="MoreCategories" title="lu_fld_MoreCategories"/>
<inp2:m_RenderElement name="inp_edit_textarea_ml" prefix="l" field="Description" cols="80" rows="7" title="lu_fld_Description" style="width:400px" is_last="1"/>
<tr>
<td colspan="2">
<br/>
<inp2:m_RenderElement name="subsection" title="lu_section_Images" break=""/>
</td>
</tr>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="l" field="PrimaryImage" title="lu_fld_PrimaryImage"/>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="l" field="Image1" title="lu_fld_Image1"/>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="l" field="Image2" title="lu_fld_Image2" is_last="1"/>
<tr>
<td colspan="2">
<br/>
<inp2:m_RenderElement name="subsection" title="lu_section_Files" break=""/>
</td>
</tr>
<inp2:m_RenderElement name="inp_edit_file_upload" prefix="l" field="File1" title="lu_fld_File1"/>
<inp2:m_RenderElement name="inp_edit_file_upload" prefix="l" field="File2" title="lu_fld_File2"/>
<inp2:m_RenderElement name="inp_edit_file_upload" prefix="l" field="File3" title="lu_fld_File3" is_last="1"/>
<inp2:m_if check="m_ConfigEquals" option="Link_EnhancedLinks" value="1">
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="l" field="ListingTypeId" title="lu_fld_ListingType"/>
- <td class="field-value">
- <inp2:m_if check="l_LinkIsEnhanced">
- <strong><inp2:l_ListingTypeField name="Name" /></strong>
- <inp2:m_if check="l_EnhancementIsPending">
- (<inp2:m_Phrase label="lu_PendingEnhancement" />)
- </inp2:m_if>
- <a href="<inp2:l_LinkLink template="in-link/links/enhancements/extend_enhancement"/>"><inp2:m_Phrase label="lu_btn_ExtendCancelEnhancement" /></a>
- <inp2:m_else />
- <a href="<inp2:l_LinkLink template="in-link/links/enhancements/enhance_link"/>"><inp2:m_Phrase label="lu_btn_EnhanceLink" /></a>
+ <inp2:m_RenderElement design="form_row" prefix="l" field="ListingTypeId" title="lu_fld_ListingType" is_last="1">
+ <inp2:m_if check="l_LinkIsEnhanced">
+ <strong><inp2:l_ListingTypeField name="Name" /></strong>
+ <inp2:m_if check="l_EnhancementIsPending">
+ (<inp2:m_Phrase label="lu_PendingEnhancement" />)
</inp2:m_if>
- </td>
- </tr>
+ <a href="<inp2:l_LinkLink template="in-link/links/enhancements/extend_enhancement"/>"><inp2:m_Phrase label="lu_btn_ExtendCancelEnhancement" /></a>
+ <inp2:m_else />
+ <a href="<inp2:l_LinkLink template="in-link/links/enhancements/enhance_link"/>"><inp2:m_Phrase label="lu_btn_EnhanceLink" /></a>
+ </inp2:m_if>
+ </inp2:m_RenderElement>
</inp2:m_if>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="modify_confirm_template" value="in-link/links/modify_confirm"/>
<input type="hidden" name="modify_pending_confirm_template" value="in-link/links/modify_pending_confirm"/>
<input class="button" type="submit" name="events[l][OnUpdate]" value="<inp2:m_Phrase label="lu_btn_Update" no_editing="1"/>"/>
<input class="button" type="reset" name="events[l][OnReset]" value="<inp2:m_Phrase label="lu_btn_Reset" no_editing="1"/>"/>
</inp2:m_RenderElement>
</table>
</form>
<inp2:m_else/>
<inp2:m_phrase name="lu_text_NoModifyLinkPermission"/>
</inp2:m_if>
</inp2:m_RenderElement>
<!-- // modify link -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/in-link/links/enhancements/cancel_enhancement_confirm.tpl
===================================================================
--- branches/1.3.x/in-link/links/enhancements/cancel_enhancement_confirm.tpl (revision 15664)
+++ branches/1.3.x/in-link/links/enhancements/cancel_enhancement_confirm.tpl (revision 15665)
@@ -1,87 +1,87 @@
<!--##
<NAME>Cancel Link Enhancement - Confirmation</NAME>
<DESC>Cancel Link Enhancement Confirmation page</DESC>
<SECTION>Platform||Links||Enhancements</SECTION>
##-->
<inp2:m_RequireLogin template="platform/login/register"/>
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_ConfirmCancelEnhancement" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/new.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/hot.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pop.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pick.elm" design="blue_box" data_exists="1"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
- <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ConfirmCancelEnhancement" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,inlinks/links/enhancements/cancel_enhancement_confirm"/>
+ <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ConfirmCancelEnhancement" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,in-link/links/enhancements/cancel_enhancement_confirm"/>
</div>
<div class="movable-element">
<!-- enhancement extension confirmation -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_ConfirmCancelEnhancement"/>
</inp2:m_Capture>
<form method="POST" action="<inp2:m_FormAction />">
<table>
<tr>
<td>
<h2><inp2:m_phrase label="lu_AreYouSureToCancelEnhancement" /></h2>
</td>
</tr>
<tr>
<td>
<inp2:m_Phrase label="lu_CancelEnhancementConfirmation" />
</td>
</tr>
<tr>
<td>
<br />
<input type="hidden" name="success_template" value="in-link/my_account/my_links" />
<input type="submit" class="button" name="events[ls][OnCancelEnhancement]" value="<inp2:m_phrase label="lu_btn_Yes" />" />
<input type="hidden" name="cancel_template" value="in-link/my_account/my_links" />
<input type="submit" class="button" name="events[ls][OnCancel]" value="<inp2:m_Phrase label="lu_btn_No" />" />
</td>
</tr>
</table>
</form>
</inp2:m_RenderElement>
<!-- // enhancement extension confirmation -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/in-link/links/enhancements/extend_enhancement_confirm.tpl
===================================================================
--- branches/1.3.x/in-link/links/enhancements/extend_enhancement_confirm.tpl (revision 15664)
+++ branches/1.3.x/in-link/links/enhancements/extend_enhancement_confirm.tpl (revision 15665)
@@ -1,92 +1,92 @@
<!--##
<NAME>Link Enhancement Extension - Confirmation</NAME>
<DESC>Link Enhancement Extension Confirmation page</DESC>
<SECTION>Platform||Links||Enhancements</SECTION>
##-->
<inp2:m_RequireLogin template="platform/login/register"/>
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_ConfirmExtendEnhancement" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/new.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/hot.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pop.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pick.elm" design="blue_box" data_exists="1"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
- <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ConfirmExtendEnhancement" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,inlinks/links/enhancements/extend_enhancement_confirm"/>
+ <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ConfirmExtendEnhancement" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,in-link/links/enhancements/extend_enhancement_confirm"/>
</div>
<div class="movable-element">
<!-- enhancement extension confirmation -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_ConfirmExtendEnhancement"/>
</inp2:m_Capture>
<form method="POST" action="<inp2:m_FormAction />">
<table>
<tr>
<td>
<h2><inp2:m_phrase label="lu_AreYouSureToExtendEnhancement" /></h2>
</td>
</tr>
<tr>
<td>
<inp2:m_Phrase label="lu_ExtendEnhancementConfirmation" />
</td>
</tr>
<tr>
<td>
<br />
<inp2:m_if check="l_EnhanceUsingInCommerce">
<input type="hidden" name="shop_cart_template" value="in-commerce/checkout/shop_cart" />
<input type="submit" class="button" name="events[ord][OnAddVirtualProductToCart]" value="<inp2:m_phrase label="lu_btn_Yes" />" />
<inp2:m_else />
<input type="hidden" name="success_template" value="in-link/my_account/my_links" />
<input type="submit" class="button" name="events[ls][OnExtendEnhancement]" value="<inp2:m_Phrase label="lu_btn_Yes" />" />
</inp2:m_if>
<input type="hidden" name="cancel_template" value="in-link/my_account/my_links" />
<input type="submit" class="button" name="events[ls][OnCancel]" value="<inp2:m_Phrase label="lu_btn_No" />" />
</td>
</tr>
</table>
</form>
</inp2:m_RenderElement>
<!-- // enhancement extension confirmation -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/in-link/links/enhancements/extend_enhancement.tpl
===================================================================
--- branches/1.3.x/in-link/links/enhancements/extend_enhancement.tpl (revision 15664)
+++ branches/1.3.x/in-link/links/enhancements/extend_enhancement.tpl (revision 15665)
@@ -1,94 +1,94 @@
<!--##
<NAME>Link Enhancement Extension</NAME>
<DESC>Link Enhancement Extension page</DESC>
<SECTION>Platform||Links||Enhancements</SECTION>
##-->
<inp2:m_RequireLogin template="platform/login/register"/>
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_ExtendCancelEnhancement" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/new.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/hot.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pop.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pick.elm" design="blue_box" data_exists="1"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
- <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ExtendCancelEnhancement" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,inlinks/links/enhancements/extend_enhancement"/>
+ <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_ExtendCancelEnhancement" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,in-link/links/enhancements/extend_enhancement"/>
</div>
<div class="movable-element">
<!-- extend/cancel enhancment -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_ExtendCancelEnhancement"/>
</inp2:m_Capture>
<table>
<tr>
<td>
<strong><inp2:m_Phrase label="lu_fld_ListingTypeName" /></strong>:
</td>
<td>
<inp2:l_ListingTypeField name="Name" />
</td>
</tr>
<tr>
<td>
<strong><inp2:m_Phrase label="lu_fld_ListingExpirationDate" /></strong>:
</td>
<td>
<inp2:l_EnhancementField name="ExpiresOn_date" />
</td>
</tr>
</table>
<br />
<inp2:m_if check="l_IsRenewalPeriod">
<input type="button" class="button" onclick="redirect('<inp2:l_LinkLink template="in-link/links/enhancements/extend_enhancement_confirm"/>');" value="<inp2:m_Phrase label="lu_btn_ExtendEnhancement" no_editing="1"/>"/>
</inp2:m_if>
<inp2:m_if check="l_IsReocurringEnhancement">
<br />
<inp2:m_Phrase label="lu_EnhancementSetToRenewOn" /> <inp2:l_EnhancementField name="ExpiresOn_date" />,
<a href="<inp2:l_LinkLink template="in-link/links/enhancements/cancel_enhancement_confirm"/>"><inp2:m_Phrase label="lu_ClickHere" /></a>
<inp2:m_Phrase label="lu_ToCancelEnhancement" />
<inp2:m_else />
<input type="button" class="button" onclick="redirect('<inp2:l_LinkLink template="in-link/links/enhancements/cancel_enhancement_confirm"/>');" value="<inp2:m_Phrase label="lu_btn_CancelEnhancement" />" no_editing="1"/>
</inp2:m_if>
</inp2:m_RenderElement>
<!-- // extend/cancel enhancment -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/in-link/links/enhancements/enhance_link.tpl
===================================================================
--- branches/1.3.x/in-link/links/enhancements/enhance_link.tpl (revision 15664)
+++ branches/1.3.x/in-link/links/enhancements/enhance_link.tpl (revision 15665)
@@ -1,102 +1,102 @@
<!--##
<NAME>Link Enhancement</NAME>
<DESC>Link Enhancement Form</DESC>
<SECTION>Platform||Links||Enhancements</SECTION>
##-->
<inp2:m_RequireLogin login_template="platform/login/register"/>
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_EnhanceLink" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/new.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/hot.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pop.elm" design="blue_box" data_exists="1"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-link/elements/side_boxes/pick.elm" design="blue_box" data_exists="1"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
- <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_EnhanceLink" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,inlinks/links/enhancements/enhance_link"/>
+ <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyLinks,__item__,lu_title_EnhanceLink" templates="platform/my_account/my_account,in-link/my_account/my_links,__default__,in-link/links/enhancements/enhance_link"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement design="content_box" data_exists="1" block_no_data="no_enhancements">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_EnhanceLink"/>
</inp2:m_Capture>
<inp2:m_RenderElement name="subsection" title="lu_ChooseListingType"/>
<inp2:m_include template="in-link/elements/enhancements.elm"/>
<inp2:m_if check="m_ModuleEnabled" module="In-Commerce">
<inp2:m_Phrase label="lu_notice_SubscriptionAddToCart" /><br /><br />
</inp2:m_if>
<form method="POST" action="<inp2:m_Link pass="all,l,ls"/>">
<table class="fullwidth">
<tr>
<td colspan="<inp2:m_if check="m_ModuleEnabled" module="In-Commerce">4<inp2:m_else/>3</inp2:m_if>">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<tr class="sub-section-header">
<td colspan="2">
<inp2:m_Phrase name="lu_col_Name"/>
</td>
<td>
<inp2:m_Phrase name="lu_col_Duration"/>
</td>
<inp2:m_if check="m_ModuleEnabled" module="In-Commerce">
<td>
<inp2:m_Phrase name="lu_col_Price"/>
</td>
</inp2:m_if>
</tr>
<inp2:lst_PrintList render_as="listing_type_element"/>
</table>
<table class="fullwidth">
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="submit" class="button" name="events[ls][OnRequestEnhancement]" value="<inp2:m_Phrase label="lu_btn_EnhanceLink" />" no_editing="1"/>
<input type="submit" class="button" name="events[ls][OnCancel]" value="<inp2:m_Phrase label="lu_btn_Cancel" />" no_editing="1"/>
<input type="hidden" name="shop_cart_template" value="in-commerce/checkout/shop_cart" />
<input type="hidden" name="success_template" value="in-link/links/enhancements/enhance_confirm" />
<input type="hidden" name="cancel_template" value="in-link/my_account/my_links" />
</inp2:m_RenderElement>
</table>
</form>
</inp2:m_RenderElement>
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/in-bulletin/elements/forms.elm.tpl
===================================================================
--- branches/1.3.x/in-bulletin/elements/forms.elm.tpl (revision 15664)
+++ branches/1.3.x/in-bulletin/elements/forms.elm.tpl (revision 15665)
@@ -1,32 +1,28 @@
-<inp2:m_DefineElement name="inp_edit_textarea_bb" style="" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <a href="<inp2:m_Link/>" onclick="insertTags('[B]', '[/B]', 'bold text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
- <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/bold_icon.png" border="0"/>
- </a>
- <a href="<inp2:m_Link/>" onclick="insertTags('[I]', '[/I]', 'italic text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
- <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/italic_icon.png" border="0"/>
- </a>
- <a href="<inp2:m_Link/>" onclick="insertTags('[U]', '[/U]', 'underlined text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
- <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/underline_icon.png" border="0"/>
- </a>
- <a href="<inp2:m_Link/>" onclick="insertTags('[URL HREF=', ']link name[/URL]', 'link url', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
- <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/link_icon.png" border="0"/>
- </a>
- <a href="<inp2:m_Link/>" onclick="insertTags('[IMG BORDER=1 SRC=', '][/IMG]', 'image url', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
- <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/image_icon.png" border="0"/>
- </a>
- <a href="<inp2:m_Link/>" onclick="insertTags('[CODE]', '[/CODE]', 'code text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
- <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/code_icon.png" border="0"/>
- </a>
+<inp2:m_DefineElement name="inp_edit_textarea_bb" style="" error_position="none" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <a href="<inp2:m_Link/>" onclick="insertTags('[B]', '[/B]', 'bold text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
+ <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/bold_icon.png" border="0"/>
+ </a>
+ <a href="<inp2:m_Link/>" onclick="insertTags('[I]', '[/I]', 'italic text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
+ <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/italic_icon.png" border="0"/>
+ </a>
+ <a href="<inp2:m_Link/>" onclick="insertTags('[U]', '[/U]', 'underlined text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
+ <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/underline_icon.png" border="0"/>
+ </a>
+ <a href="<inp2:m_Link/>" onclick="insertTags('[URL HREF=', ']link name[/URL]', 'link url', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
+ <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/link_icon.png" border="0"/>
+ </a>
+ <a href="<inp2:m_Link/>" onclick="insertTags('[IMG BORDER=1 SRC=', '][/IMG]', 'image url', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
+ <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/image_icon.png" border="0"/>
+ </a>
+ <a href="<inp2:m_Link/>" onclick="insertTags('[CODE]', '[/CODE]', 'code text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
+ <img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/code_icon.png" border="0"/>
+ </a>
- <br />
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <textarea class="input-textarea" tabindex="<inp2:m_get param="tab_index"/>" name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>" cols="<inp2:m_param name="cols"/>" rows="<inp2:m_param name="rows"/>" style="<inp2:m_param name="style"/>"><inp2:{$prefix}_Field field="$field"/></textarea>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ <br />
+
+ <inp2:m_RenderElement name="error_msg_container" pass_params="1"/>
+
+ <textarea class="input-textarea" tabindex="<inp2:m_get param='tab_index'/>" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" cols="<inp2:m_param name='cols'/>" rows="<inp2:m_param name='rows'/>" style="<inp2:m_param name='style'/>"><inp2:{$prefix}_Field field="$field"/></textarea>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.3.x/platform/my_account/my_profile.tpl
===================================================================
--- branches/1.3.x/platform/my_account/my_profile.tpl (revision 15664)
+++ branches/1.3.x/platform/my_account/my_profile.tpl (revision 15665)
@@ -1,89 +1,107 @@
<!--##
<NAME>My Profile</NAME>
<DESC></DESC>
<SECTION>My Account</SECTION>
##-->
<inp2:m_RequireLogin login_template="platform/login/register"/>
<inp2:m_CheckSSL mode="required" condition="Require_SSL" />
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_MyProfile" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyProfile" templates="platform/my_account/my_account,platform/my_account/my_profile"/>
</div>
<div class="movable-element">
<!-- my profile -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_MyProfile"/>
</inp2:m_Capture>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="u_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
- <form method="post" enctype="multipart/form-data" action="<inp2:m_FormAction/>">
+ <form method="post" enctype="multipart/form-data" id="profile_form" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
<inp2:m_if check="u_Field" name="OldStyleLogin" db="db">
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Username" title="lu_fld_Username" style="width:155px"/>
<inp2:m_else/>
<inp2:m_RenderElement name="inp_label" prefix="u" field="Username" title="lu_fld_Username"/>
</inp2:m_if>
<inp2:m_RenderElement name="inp_edit_password" prefix="u" field="Password" title="lu_fld_Password" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_password" prefix="u" field="VerifyPassword" title="lu_fld_VerifyPassword" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="FirstName" title="lu_fld_FirstName" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="LastName" title="lu_fld_LastName" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Company" title="lu_fld_Company" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Phone" title="lu_fld_Phone" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Fax" title="lu_fld_Fax" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Email" title="lu_fld_Email" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_date" prefix="u" field="dob" title="lu_fld_BirthDate" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Street" title="lu_fld_AddressLine1" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Street2" title="lu_fld_AddressLine2" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="City" title="lu_fld_City" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="State" title="lu_fld_State" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u" field="Zip" title="lu_fld_Zip" style="width:55px" />
<inp2:m_RenderElement name="inp_edit_options" prefix="u" field="Country" title="lu_fld_Country" has_empty="1"/>
<inp2:m_RenderElement name="inp_edit_timezone" prefix="u" field="TimeZone" title="lu_field_tz" has_empty="1"/>
<inp2:m_RenderElement name="inp_edit_options" prefix="u" field="FrontLanguage" title="lu_fld_Language" has_empty="1"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="u" field="SubscribeToMailing" title="lu_fld_SubscribeToMailing"/>
<inp2:m_RenderElement name="inp_edit_image_upload" prefix="u" field="PrimaryImage" title="lu_prompt_Avatar" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input class="button" type="submit" name="events[u][OnUpdate]" value="<inp2:m_Phrase label="lu_btn_Update" no_editing="1"/>"/>
<input type="hidden" name="next_template" value="platform/my_account/my_account"/>
</inp2:m_RenderElement>
</table>
</form>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function () {
+ FormManager.registerForm(
+ {
+ prefix: 'u',
+ id: '<inp2:u_Field name="PortalUserId"/>',
+ form_id: 'profile_form'
+ }
+ );
+
+ $('#profile_form').submit(function ($e) {
+ FormManager.cancelXHRRequests();
+ });
+ }
+ );
+ </script>
</inp2:m_RenderElement>
<!-- // my profile -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/1.3.x/platform/login/forgot_password.tpl
===================================================================
--- branches/1.3.x/platform/login/forgot_password.tpl (revision 15664)
+++ branches/1.3.x/platform/login/forgot_password.tpl (revision 15665)
@@ -1,88 +1,78 @@
<!--##
<NAME>Forgot Password</NAME>
<DESC></DESC>
<SECTION>My Account||Login</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_ForgotPassword" no_editing="1"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/recommend_site.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/mailing_list.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_ForgotPassword" templates="platform/login/forgot_password"/>
</div>
<div class="movable-element">
<!-- forgot password -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_ForgotPassword"/>
</inp2:m_Capture>
<inp2:m_Phrase label="lu_EnterForgotUserEmail"/>
<br /><br />
<inp2:u.forgot_FormName name="forgot_password"/>
<inp2:m_if check="u.forgot_HasError" field="any">
<inp2:m_RenderElement name="error_message"/>
</inp2:m_if>
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br />
+ <img src="<inp2:m_TemplatesBase module='In-Portal'/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br />
<form method="post" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
- <inp2:m_RenderElement name="inp_edit_box" prefix="u.forgot" field="ForgotLogin" title="lu_fld_Username" style="width: 155px;"/>
-
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <td class="field-name"></td>
- <td class="field-value">
- <inp2:m_Phrase label="lu_Or"/>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
-
- <inp2:m_RenderElement name="inp_edit_box" prefix="u.forgot" field="ForgotEmail" title="lu_fld_Email" style="width: 155px;" is_last="1"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="u.forgot" field="ForgotLogin" title="lu_fld_EmailOrUsername" style="width: 155px;" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="template_success" value="platform/login/forgot_password_reset_notice"/>
<input type="hidden" name="reset_confirm_template" value="platform/login/forgot_password_reset"/>
<input type="submit" class="button" name="events[u.forgot][OnForgotPassword]" value="<inp2:m_Phrase label='lu_btn_SendPassword' no_editing='1'/>" />
<input type="button" class="button" onclick="redirect('<inp2:m_Link template="index"/>');" value="<inp2:m_Phrase label="lu_btn_Cancel" no_editing="1"/>">
</inp2:m_RenderElement>
</table>
</form>
</inp2:m_RenderElement>
<!-- // forgot password -->
</div>
</div>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Index: branches/1.3.x/platform/inc/script.js
===================================================================
--- branches/1.3.x/platform/inc/script.js (revision 15664)
+++ branches/1.3.x/platform/inc/script.js (revision 15665)
@@ -1,229 +1,236 @@
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
function update_checkbox(cb, cb_hidden) {
cb_hidden.value = cb.checked ? 1 : 0;
}
function redirect($url) {
window.location.href = $url;
}
function open_window($url, $window_name, $width, $height) {
window.open($url, $window_name, 'width='+$width+',height='+$height+',resizable=yes');
return false;
}
function addLoadEvent(func, wnd) {
if (!wnd) wnd = window
var oldonload = wnd.onload;
if (typeof wnd.onload != 'function') {
wnd.onload = func;
} else {
wnd.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
function addEvent(el, evname, func, traditional) {
if (traditional) {
eval('el.on'+evname+'='+func);
return;
}
if (document.all) {
el.attachEvent("on" + evname, func);
} else {
el.addEventListener(evname, func, true);
}
};
+function get_control($mask, $field, $append, $prepend) {
+ $append = $append !== undefined ? '_' + $append : '';
+ $prepend = $prepend !== undefined ? $prepend + '_' : '';
+
+ return document.getElementById($prepend + $mask.replace('#FIELD_NAME#', $field) + $append);
+}
+
// ItemCategories class
function ItemCategories($table_id, $field_id, $primary_category, $phrases) {
this.CategoryTable = document.getElementById($table_id);
this.CategorySelector = document.getElementById($field_id + '_select');
this.MoreCategoriesField = document.getElementById($field_id);
this.PrimaryCategory = $primary_category;
this.Phrases = $phrases;
// get additional categories from item
if (this.MoreCategoriesField.value.length) {
this.MoreCategories = this.MoreCategoriesField.value;
this.MoreCategories = this.MoreCategories.substring(1, this.MoreCategories.length - 1).split('|');
}
else {
this.MoreCategories = new Array ();
}
}
ItemCategories.prototype.AddCategory = function($separator, $delete_button, $max_categories) {
var $category_id = this.CategorySelector.options[this.CategorySelector.selectedIndex].value;
var $category_name = this.CategorySelector.options[this.CategorySelector.selectedIndex].getAttribute('full_path');
if ((this.SearchCategory($category_id) !== false) || ($category_id == this.PrimaryCategory) || ($category_id == 0)) {
// don't add same category twice & don't allow to add item's primary category
alert(this.Phrases[1]);
return ;
}
if ((this.MoreCategories.length + 2) > $max_categories)
{
// don't add more category - $max_categories limit
alert(this.Phrases[0]);
return ;
}
var $row = this.CategoryTable.insertRow(-1);
$row.id = 'category_' + $category_id;
var $cell = $row.insertCell(-1);
$cell.innerHTML = $category_name;
$cell = $row.insertCell(-1);
$cell.innerHTML = $delete_button.replace(/#CATEGORY_ID#/g, $category_id);
this.MoreCategories.push($category_id);
this.updateMoreCategoriesField();
}
ItemCategories.prototype.SearchCategory = function($category_id) {
var $i = 0;
while ($i < this.CategoryTable.rows.length) {
if (this.CategoryTable.rows[$i].id == 'category_' + $category_id) {
return $i;
}
$i++;
}
return false;
}
ItemCategories.prototype.DeleteCategory = function($category_id) {
var $row_index = this.SearchCategory($category_id);
if ($row_index !== false) {
this.CategoryTable.deleteRow($row_index);
var $i = 0;
while ($i < this.MoreCategories.length) {
if (this.MoreCategories[$i] == $category_id) {
this.MoreCategories.splice($i, 1);
break;
}
$i++;
}
this.updateMoreCategoriesField();
}
}
ItemCategories.prototype.updateMoreCategoriesField = function() {
this.MoreCategoriesField.value = this.MoreCategories.length ? '|' + this.MoreCategories.join('|') + '|' : '';
}
function jq($selector) {
return $selector.replace(/(\[|\]|\.|:)/g, '\\$1');
}
function MultiLanguageSelector($language_info, $current_language) {
this._languageInfo = $language_info;
this._currentLanguage = $current_language;
this._controls = new Array ();
var $me = this;
$(document).ready(
function() {
$me.init();
}
);
}
MultiLanguageSelector.prototype.init = function () {
var $i = 0;
var $me = this;
while ($i < this._controls.length) {
// set current language
$( jq('#' + this._controls[$i]) ).data('PrevLanguage', this._currentLanguage);
for (var $language_id in this._languageInfo) {
var $id = this.inputForLanguage(this._controls[$i], $language_id);
$( jq('#' + $id + '_flag') ).each(
function() {
$(this)
.data('MainControl', $me._controls[$i])
.data('ThisLanguage', $language_id)
.click(
function ($event) {
var $this_flag = $(this);
var $this_language = $this_flag.data('ThisLanguage');
var $main_control = $('#' + jq($this_flag.data('MainControl')) );
var $prev_language = $main_control.data('PrevLanguage');
var $prev_flag = $( jq('#' + $me.inputForLanguage($main_control.attr('id'), $prev_language) + '_flag') );
var $language_info;
if ($this_language != $prev_language) {
// hide prev language input + enable it's flag
var $prev_image = $prev_flag.children('img:first');
if ($prev_image.length) {
// found image for given language
$language_info = $me._languageInfo[$prev_language];
$prev_image.attr('src', $prev_image.attr('src').replace($language_info.off, $language_info.on));
}
$( jq('#' + $prev_flag.attr('id').replace(/_flag$/, '_input') ) ).hide();
// show this language input + disable it's flag
var $this_image = $this_flag.children('img:first');
if ($this_image.length) {
// found image for given language
$language_info = $me._languageInfo[$this_language];
$this_image.attr('src', $this_image.attr('src').replace($language_info.on, $language_info.off));
}
var $this_container = $( jq('#' + $this_flag.attr('id').replace(/_flag$/, '_input') ) );
$this_container.show();
// focus on shown control
$('input:first, textarea:first', $this_container).focus();
// remember last used language
$main_control.data('PrevLanguage', $this_language);
}
$event.preventDefault();
}
);
}
);
}
$i++;
}
}
MultiLanguageSelector.prototype.inputForLanguage = function ($control_id, $language_id) {
return $control_id.replace('l' + this._currentLanguage + '_', 'l' + $language_id + '_');
}
MultiLanguageSelector.prototype.registerControl = function ($id) {
this._controls.push($id);
}
function in_array(needle, haystack)
{
return array_search(needle, haystack) != -1;
}
function array_search(needle, haystack)
{
for (var i=0; i<haystack.length; i++)
{
if (haystack[i] == needle) return i;
}
return -1;
}
Index: branches/1.3.x/platform/inc/form_manager.js
===================================================================
--- branches/1.3.x/platform/inc/form_manager.js (nonexistent)
+++ branches/1.3.x/platform/inc/form_manager.js (revision 15665)
@@ -0,0 +1,544 @@
+function FormManager() { }
+
+FormManager.init = function ($settings) {
+ $.ajaxSetup( {cache: false} );
+
+ this.url = '';
+ this.fieldMask = '#PREFIX#[#ID#][#FIELD_NAME#]';
+
+ this.noErrorsHTML = '';
+ this.checkTimeout = 1000;
+ this.pendingChecks = {};
+
+ this.fields = {};
+ this.errors = {};
+ this.fieldTypes = {};
+ this.forms = {};
+ this.fieldWatermarks = {};
+
+ this.xhrRequests = [];
+
+ $.extend(this, $settings);
+}
+
+FormManager.resetFields = function ($prefix) {
+ this.fields[$prefix] = [];
+}
+
+FormManager.registerField = function ($prefix, $field, $watermark, $field_type) {
+ // fields are registered before form -> store them in separate array
+ if (!this.fields[$prefix]) {
+ this.fields[$prefix] = [];
+ }
+
+ if ($watermark === undefined) {
+ $watermark = '';
+ }
+
+ this.fieldWatermarks[$prefix + '_' + $field] = $watermark;
+
+ this.fields[$prefix].push($field);
+
+ if ($field_type !== undefined) {
+ this.fieldTypes[$prefix + '_' + $field] = $field_type;
+ }
+}
+
+FormManager.unregisterField = function ($prefix, $field) {
+ var $field_index = array_search($field, this.fields[$prefix]);
+
+ this.fields[$prefix].splice($field_index, 1);
+
+ delete this.fieldWatermarks[$prefix + '_' + $field];
+ delete this.fieldTypes[$prefix + '_' + $field];
+}
+
+
+FormManager.getFieldMask = function ($prefix) {
+ return this.fieldMask.replace('#PREFIX#', $prefix).replace('#ID#', this.form_param($prefix, 'id'));
+}
+
+FormManager.getField = function ($prefix, $field, $prepend, $append) {
+ if ($prepend === undefined) {
+ $prepend = '';
+ }
+
+ if ($append === undefined) {
+ $append = '';
+ }
+
+ var $control_id = this.getFieldMask($prefix).replace('#FIELD_NAME#', $field);
+
+ return document.getElementById($prepend + $control_id + $append);
+}
+
+FormManager.getBlurFields = function ($prefix, $field) {
+ var $field_mask = this.getFieldMask($prefix);
+
+ switch ( this.fieldTypes[$prefix + '_' + $field] ) {
+ case 'swf_upload':
+ return this.getField($prefix, $field, undefined, '[json]');
+ break;
+
+ case 'date':
+ $field += '_date';
+ break;
+
+ case 'radio':
+ return $("input[name='" + jq($field_mask.replace('#FIELD_NAME#', $field)) + "']");
+ break;
+
+ case 'checkbox':
+ return get_control($field_mask, $field, undefined, '_cb');
+ break;
+
+ case 'checkboxes':
+ return $("input[id^='" + jq($field_mask.replace('#FIELD_NAME#', $field)) + "_']");
+ break;
+
+ case 'cc_expiration':
+ return $('select', this.getCell($prefix, $field, 'field'));
+ break;
+ }
+
+ return this.getField($prefix, $field);
+}
+
+FormManager.registerForm = function ($settings) {
+ var $defaults = {
+ url: false, // url for form submission
+ template: '', // template to use instead of empty string
+ prefix: '', // unit prefix, used in the form
+ enabled: true, // form submit enabled
+ enabledTimer: null, // timer that performs form-resubmit countdown
+ save_event: '', // event to use for form data processing
+ id: 0, // id of item being add/edited on a form
+ form_id: '', // form id to work with
+ before_close: '', // before window close callback
+ validation_failure: '', // on validate failure callback
+ immediate_validation: true // perfom validation on blur
+ }
+
+ this.forms[$settings.prefix] = {};
+ $.extend(this.forms[$settings.prefix], $defaults, $settings);
+
+ // when form is registred, then all it's fields should also be registred
+
+ if ( !this.form_param($settings.prefix, 'immediate_validation') ) {
+ return ;
+ }
+
+ var $me = this;
+
+ $( this.fields[$settings.prefix] ).each(
+ function () {
+ var $blur_fields = $( $me.getBlurFields($settings.prefix, this) ),
+ $event_name = $blur_fields.length == 1 ? 'blur' : 'click';
+
+ $blur_fields[$event_name](
+ function ($e) {
+ $me.checkField(this);
+ }
+ );
+ }
+ );
+
+ for (var $error_field in this.errors[$settings.prefix]) {
+ this.setFieldStatus($settings.prefix, $error_field, this.errors[$settings.prefix][$error_field]);
+ }
+}
+
+FormManager.getURL = function ($prefix, $template, $event, $params) {
+ var $url = this.form_param($prefix, 'url');
+
+ if (!$url) {
+ $url = this.url;
+ }
+
+ if ($template === undefined) {
+ $template = this.form_param($prefix, 'template');
+ }
+
+ $url = $url.replace('#TEMPLATE#', $template);
+
+ if ($event !== undefined) {
+ $url += ($url.indexOf('?') == -1 ? '?' : '&') + 'events[' + $prefix + ']=' + $event;
+ }
+
+ if ( typeof($params) == 'object' ) {
+ for (key in $params) {
+ $url += ($url.indexOf('?') == -1 ? '?' : '&') + key + '=' + $params[key];
+ }
+ }
+
+ return $url;
+}
+
+FormManager.processResponse = function ($prefix, $data, $add_params) {
+ // enable form back
+// alert('enabling for for [' + $prefix + '] in processResponse');
+
+ if ( $add_params !== undefined ) {
+ $add_params.response = $data;
+ }
+ else {
+ $add_params = {response: $data};
+ }
+
+ this.clearErrors($prefix);
+
+ if ($data.status == 'OK') {
+ var $next_template = this.getNextTemplate($prefix, $data);
+
+ if ( $next_template || $data.do_refresh || $data.redirect_to ) {
+ var $before_close = this.getFormParamOverride($prefix, 'before_close', $add_params);
+
+ if ( $.isFunction($before_close) ) {
+ $before_close.call(this, $data, $add_params);
+ }
+
+ if ( $next_template ) {
+ // load another template instead of current form
+ $('#TB_ajaxContent').html('').load( this.getURL($prefix, $next_template, undefined, $data.params) );
+ }
+ else if ( $data.do_refresh ) {
+ // refresh whole page
+ window.location.href = window.location.href;
+ }
+ else if ( $data.redirect_to ) {
+ // redirect to given page
+ window.location.href = $data.redirect_to;
+ }
+ }
+ else {
+ // close form without refreshing the page
+ this.closeForm($prefix, $data, $add_params);
+ }
+ }
+ else {
+ // set new errors
+ for ($field in $data.field_errors) {
+ this.setFieldStatus($prefix, $field, $data.field_errors[$field]);
+ }
+
+ var $validation_failure = this.form_param($prefix, 'validation_failure');
+
+ if ( $.isFunction($validation_failure) ) {
+ $validation_failure.call(this, $data, $add_params);
+ }
+ }
+
+ this.enableForm($prefix, true);
+
+// var $me = this;
+// setTimeout(function () { $me.enableForm($prefix, true); }, 1000);
+}
+
+/**
+ * Clear errors from all from fields
+ *
+ * @param $prefix
+ */
+FormManager.clearErrors = function ($prefix) {
+ var $fields = this.fields[$prefix];
+
+ if (typeof($fields) == 'undefined') {
+ $fields = [];
+ }
+
+ this.errors[$prefix] = {};
+
+ for (var $i = 0; $i < $fields.length; $i++) {
+ this.setFieldStatus($prefix, $fields[$i]);
+ }
+}
+
+FormManager.getNextTemplate = function ($prefix, $responce) {
+ if ( $responce.next_template && $responce.next_template != '' ) {
+ return $responce.next_template;
+ }
+ else if ( this.form_param($prefix, 'next_template') ) {
+ return this.form_param($prefix, 'next_template');
+ }
+
+ return false;
+}
+
+FormManager.getCell = function ($prefix, $field_name, $cell_type) {
+ $field_name = $field_name.replace(/_(date|time)$/, '');
+
+ return this.getField($prefix, $field_name, undefined, '_' + $cell_type + '_cell');
+}
+
+FormManager.setFieldStatus = function ($prefix, $field_name, $error_msg) {
+ var field_cell = this.getCell($prefix, $field_name, 'field');
+ var status_cell = this.getCell($prefix, $field_name, 'status');
+
+ if ( $error_msg === undefined || !$error_msg ) {
+ $error_msg = '';
+ }
+
+ if ( !field_cell ) {
+ if (!this.errors[$prefix]) {
+ this.errors[$prefix] = {};
+ }
+
+ this.errors[$prefix][$field_name] = $error_msg;
+
+ /*if(typeof console === 'object') {
+ console.log('FormManager: Error field "' + $field_name + '" missing.');
+ }*/
+
+ return ;
+ }
+
+ if ($error_msg === undefined || !$error_msg) {
+ // show OK
+ $(field_cell).parents('tr:first').removeClass('error').addClass('ok');
+ $(status_cell).removeClass('field-error').html(this.noErrorsHTML);
+
+ var $fields = this.fields[$prefix];
+
+ for (var $i = 0; $i < $fields.length; $i++) {
+ if ( this.fieldHasError($prefix, $fields[$i]) ) {
+ return ;
+ }
+ }
+ }
+ else {
+ // show error message
+ $(field_cell).parents('tr:first').removeClass('ok').addClass('error');
+ $(status_cell).addClass('field-error').html($error_msg);
+ }
+}
+
+FormManager.fieldHasError = function ($prefix, $field) {
+ var status_cell = this.getField($prefix, $field, undefined, '_status_cell');
+
+ return $.trim( $(status_cell).html() ) != $.trim( this.noErrorsHTML );
+}
+
+FormManager.checkField = function ($input, $delayed) {
+ if ( !$input.id.match(/^(.*?)\[.*?\]\[(.*?)\].*?$/) ) {
+ return ;
+ }
+
+ var $prefix = RegExp.$1;
+ var $field = RegExp.$2.replace(/(_date|_time)$/, '');
+
+ if ( $field.match(/(.*)(Month|Year)$/) && this.fieldTypes[$prefix + '_' + RegExp.$1 + 'Date'] == 'cc_expiration' ) {
+ $field = RegExp.$1 + 'Date';
+ }
+
+ if ( this.pendingChecks[$field] ) {
+ clearTimeout( this.pendingChecks[$field] );
+ delete this.pendingChecks[$field];
+ }
+
+ var $me = this;
+
+ this.pendingChecks[$field] = setTimeout(
+ function () {
+ $me.validateField($prefix, $field, $input)
+ },
+ ($delayed === true ? this.checkTimeout : 0)
+ );
+}
+
+FormManager.validateField = function ($prefix, $field, $input) {
+ var $me = this;
+
+ var $request = $.post(
+ this.getURL($prefix, undefined, 'OnValidateField') + '&field=' + encodeURIComponent($field) + '&' + $input.name + '=' + encodeURIComponent($input.value),
+ this._getFormFields($prefix),
+ function ($data) {
+ $data = eval('(' + $data + ')');
+ $me.setFieldStatus($prefix, $field, $data.status == 'OK' ? undefined : $data.status);
+
+ // show/hide general error notice
+ $('#' + $prefix + '_error_message').toggle(!$.isArray($data.other_errors));
+ }
+ );
+
+ this.xhrRequests.push($request);
+};
+
+FormManager.form_param = function ($prefix, $param, $value) {
+ if ( this.forms[$prefix] === undefined ) {
+ return '';
+ }
+
+ if ($value === undefined) {
+ return this.forms[$prefix][$param];
+ }
+
+ this.forms[$prefix][$param] = $value;
+}
+
+FormManager.getFormParamOverride = function ($prefix, $param, $overrides) {
+ if ( $overrides[$param] !== undefined ) {
+ return $overrides[$param];
+ }
+
+ return this.form_param($prefix, $param);
+}
+
+/* === related to form opening/closing/submitting === */
+FormManager.openForm = function ($prefix, $template, $width, $height, $source_form, $params) {
+ var $url = this.getURL($prefix, $template, undefined, $params);
+
+ $url += ($url.indexOf('?') == -1 ? '?' : '&') + 'width=' + $width + '&height=' + $height + '&modal=true';
+
+ var $tb_settings = {url: $url};
+
+ if ($source_form !== undefined) {
+ $tb_settings.postParams = $($source_form).serialize();
+ }
+
+ TB.show($tb_settings);
+}
+
+FormManager.validateAll = function ($prefix, $status) {
+ var $fields = this.fields[$prefix];
+
+ for (var $i = 0; $i < $fields.length; $i++) {
+ this.setFieldStatus($prefix, $fields[$i], $status);
+ }
+}
+
+FormManager.closeForm = function ($prefix, $data, $add_params) {
+ if ( $data === undefined ) {
+ $data = {};
+ }
+
+ if ( $add_params === undefined ) {
+ $add_params = {};
+ }
+
+ var $before_close = this.getFormParamOverride($prefix, 'before_close', $add_params);
+
+ this.cancelXHRRequests();
+ this.validateAll($prefix);
+
+ if ( $.isFunction($before_close) ) {
+ var $result = $before_close.call(this, $data, $add_params);
+
+ if ($result === false) {
+ return;
+ }
+ }
+
+ TB.remove();
+}
+
+FormManager._getFormFields = function ($prefix) {
+ var $old_values = {},
+ $fields = this.fields[$prefix];
+
+ if (typeof($fields) == 'undefined') {
+ $fields = [];
+ }
+
+ // remove watermarks from input fields
+ for (var $i = 0; $i < $fields.length; $i++) {
+ var $control = this.getField($prefix, $fields[$i]),
+ $watermark = this.fieldWatermarks[ $prefix + '_' + $fields[$i] ];
+
+ if ( $control ) {
+ $old_values[$fields[$i]] = $control.value;
+
+ if ( $watermark !== undefined && $control.value == $watermark ) {
+ $control.value = '';
+ }
+ }
+ }
+
+ var form = document.getElementById( this.form_param($prefix, 'form_id')),
+ $form_fields = $(form).serialize();
+
+ // restore original values into input fields
+ for (var $i = 0; $i < $fields.length; $i++) {
+ var $control = this.getField($prefix, $fields[$i]);
+
+ if ( $control ) {
+ $control.value = $old_values[$fields[$i]];
+ }
+ }
+
+ return $form_fields;
+}
+
+FormManager.enableForm = function ($prefix, $enabled) {
+ if ($enabled === undefined) {
+ $enabled = true;
+ }
+
+ if ($enabled) {
+ clearTimeout( this.form_param($prefix, 'enabledTimer') );
+ this.form_param($prefix, 'enabledTimer', null);
+ }
+ else {
+ var $me = this;
+
+ // set timer for 10 seconds to enable form back (just in case if ajax responce fails)
+ var $timer = setTimeout(
+ function () {
+// alert('enabling for for [' + $prefix + '] in setTimeout');
+ $me.enableForm($prefix, true);
+ }
+ , 10000
+ );
+
+ this.form_param($prefix, 'enabledTimer', $timer);
+ }
+
+ this.form_param($prefix, 'enabled', $enabled);
+}
+
+FormManager.cancelXHRRequests = function () {
+ while ( this.xhrRequests.length > 0 ) {
+ this.xhrRequests.shift().abort();
+ }
+}
+
+FormManager.submitForm = function ($prefix, $add_params) {
+ if ( !this.form_param($prefix, 'enabled') ) {
+ return ;
+ }
+
+ // disable form
+ this.enableForm($prefix, false);
+
+ var $me = this;
+ this.cancelXHRRequests();
+
+ $.post(
+ this.getURL( $prefix, undefined, this.form_param($prefix, 'save_event') ),
+ this._getFormFields($prefix),
+ function ($data) {
+ var $redirect = TB.parseRedirect($data);
+
+ if ( $redirect !== false ) {
+ window.location.href = $redirect;
+
+ return ;
+ }
+
+ $me.processResponse($prefix, eval('(' + $data + ')'), $add_params);
+ }
+ )
+}
+
+FormManager.beforeClose = function () {
+ this.cancelXHRRequests();
+
+ for (var $prefix in this.forms) {
+ var $before_close = this.form_param($prefix, 'before_close');
+
+ this.clearErrors($prefix);
+
+ if ( $.isFunction($before_close) ) {
+ $before_close.call(this, {}, {});
+ }
+ }
+}
Property changes on: branches/1.3.x/platform/inc/form_manager.js
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.3.x/platform/inc/styles.css
===================================================================
--- branches/1.3.x/platform/inc/styles.css (revision 15664)
+++ branches/1.3.x/platform/inc/styles.css (revision 15665)
@@ -1,642 +1,642 @@
/* --- Golbal Usage Styles --- */
html, body {
margin: 0px;
padding: 0px;
height: 100%;
border: none;
font: 9pt Arial;
color: #000000;
}
.fullwidth {
width: 100%;
}
table {
margin: 0px;
padding: 0px;
border-collapse: collapse;
}
td {
font: 11px Arial, serif;
color: #000000;
margin: 0px;
padding: 0px;
}
.hidden-element {
display: none;
}
.horizontal-separator {
background: url('@templates_base@/platform/img/horizontal_dashed_line.gif') bottom repeat-x;
}
.vertical-separator {
background: url('@templates_base@/platform/img/vertical_dashed_line.gif') top center repeat-y;
}
img, img A {
border: 0px;
}
form {
display: inline;
}
.top-background {
background: url('@templates_base@/platform/img/top_background.gif') right repeat-y;
}
.top-baner-cell
{
padding: 10px;
text-align:center;
}
.menu-background {
background: url('@templates_base@/platform/img/menu_background.gif') top repeat-x #1865AC;
width: 100%;
}
.top-select-padding {
padding: 0px 15px;
}
.footer-table td {
background: url('@templates_base@/platform/img/footer_blue.gif') top repeat-x;
height: 26px;
color: #F7EEE4;
font-size: 10px;
padding: 0px 10px;
}
.footer-table a {
color: #F7EEE4;
}
/* --- Link Styles --- */
a {
color: #197ACA;
}
a:hover {
color: #FF9900;
}
a.more-link {
font-size: 10px;
}
a.item-action {
font-size: 9px;
color: #666666;
}
a.item-action:hover {
color: #000000;
}
.footer-links {
text-align: right;
padding: 5px 10px;
}
.footer-links A {
color: #333333;
font-size: 10px;
}
.footer-links A:hover {
color: #666666;
}
/* --- Side Box Styles --- */
.side-box-header {
background: url('@templates_base@/platform/img/side_boxes_background.gif') bottom repeat-x #83AFD6;
height: 29px;
padding: 0px 8px 0px 20px;
}
.side-box-title {
font-size: 12px;
color: #FFFFFF;
}
.side-box-title A {
font-size: 12px;
color: #FFFFFF;
text-decoration: underline;
}
.side-box-title A:hover {
font-size: 12px;
color: #FFDC0E;
}
.side-box-content {
background: url('@templates_base@/platform/img/side_boxes_content.gif') top repeat-x;
padding: 20px 20px;
}
/* --- Content Box Styles --- */
.content-box-header {
background: #F0F5FA;
height: 29px;
padding: 0px 20px;
}
.content-box-title {
font-size: 15px;
font-family: Arial;
color: #000000;
font-weight: bold;
}
.content-box-content {
background: #FFFFFF;
padding: 20px 20px 0px 20px;
}
/* --- Form Control Styles --- */
.input-text, .input-textarea {
background: url('@templates_base@/platform/img/input_text_background.gif') top repeat-x #FFFFFF;
border: 1px solid #7091B9;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
.input-textarea {
overflow: auto;
}
.input-select {
color: #333333;
font-size: 11px;
}
.button {
background: url('@templates_base@/platform/img/input_button_background.gif') bottom repeat-x #efefef;
border: 1px solid #688BAC;
padding: 0px;
font-size: 11px;
padding: 0px 5px;
}
.delete-button {
background: url('@templates_base@/platform/img/delete_button_background.gif') bottom repeat-x #FF6D6D;
color: #FFFFFF;
border: 1px solid #CC0000;
padding: 0px;
font-size: 11px;
padding: 0px 5px;
}
/* --- Form Field Styles --- */
.field-name {
padding: 5px 15px;
color: #2E5679;
font-weight: bold;
font-size: 11px;
}
-.field-required {
+.field-required, .error .field-name {
color: #FF0000;
}
.field-hint {
color: #000000;
font-size: 10px;
}
.field-error {
color: #CC0000;
font-size: 10px;
}
.field-value {
padding: 6px 5px;
}
.warning-message td {
padding: 5px;
background: #FFE5E6;
font-size: 16px;
}
.item-categories td {
padding: 1px;
}
/* --- Login Sidebox Styles --- */
.login-status, .login-status a {
font-size: 10px;
color: #FFFFFF;
}
.login-status a:hover {
font-size: 10px;
}
.remember-login {
color: #000000;
font-size: 9px;
}
/* --- Navigation Bar Styles --- */
.navigation-bar {
background: url('@templates_base@/platform/img/side_boxes_background.gif') bottom repeat-x #83AFD6;
height: 29px;
padding: 0px 20px;
font-size: 12px;
color: #FFFFFF;
}
.navigation-bar A {
color: #FFFFFF;
}
.navigation-bar A:hover {
color: #FFDC0E;
}
/* --- Top Right Menu Styles --- */
.menu-top-active-icon, .menu-top-active-text {
background: url('@templates_base@/platform/img/top_menu_select.gif');
}
td.top-menu-padding {
height: 37px;
white-space: nowrap;
}
.menu-top-noactive-icon, .menu-top-active-icon {
padding: 0px 5px 0px 13px;
}
.menu-top-noactive-text, .menu-top-active-text {
padding: 0px 13px 0px 3px;
}
a.top-menu-link, a.top-menu-link:hover {
font-size: 11px;
text-decoration: none;
}
a.top-menu-link {
color: #FFFFFF;
}
a.top-menu-link:hover {
color: #CCCCCC;
}
/* --- Tab Styles --- */
.inactive-tab, .active-tab {
padding:5px 10px;
border: 1px solid #94c0de;
}
.inactive-tab {
background-color: #eff4fa;
}
.active-tab {
background-color: #FFFFFF;
border-bottom-color: #FFFFFF;
}
.tab-bottom-line {
background: url('@templates_base@/platform/img/pixel_blue.gif') bottom repeat-x;
}
.tab-bottom-content {
border-right:1px solid #94c0de;
border-left:1px solid #94c0de;
border-bottom:1px solid #94c0de;
padding:10px;
}
.tab-left-padding {
padding-left: 40px;
}
/* --- Category Listing & My Account Styles --- */
.directory-icon {
width: 22px;
vertical-align: top;
padding: 5px;
}
.directory-text {
padding: 5px 20px 5px 5px;
vertical-align: top;
}
/* --- Item Listing Page & Item Details Page Styles --- */
.item-listing {
background: url('@templates_base@/platform/img/gradient_background.gif') top repeat-x #FFFFFF;
}
.item-listing-featured {
background: url('@templates_base@/platform/img/gradient_background_gr.gif') top repeat-x #FFFFFF;
}
.item-listing-lead {
background: url('@templates_base@/platform/img/gradient_background_red.gif') top repeat-x #FFFFFF;
}
.item-padding {
padding: 10px 10px 10px 10px;
}
.item-statistics {
font-size: 10px;
color: #666666;
}
.listing-field-name {
font-weight: bold;
}
.category-statistics {
font-size: 10px;
}
.category-header td {
padding: 5px 20px 5px 5px;
vertical-align: top;
}
.sub-section-header, .sub-section-header td {
background-color: #F4F4F4;
font-weight: bold;
padding: 5px 15px;
font-size: 12px;
}
.listing-row td {
padding: 5px 8px;
}
/* --- Pagination Bar Styles --- */
.current-page {
background: #5B97CB;
color: #FFFFFF;
padding: 1px 2px;
}
a.page-link {
color: #000000;
text-decoration: none;
}
/* --- Calendar Styles --- */
.calendar {
font-family: tahoma,verdana,sans-serif;
color: #000;
font-size: 11px;
border: 1px solid #83B2C5;
width: 225px;
position: relative;
z-index: 1;
display: none;
cursor: default;
}
.calendar table {
/*font-family: tahoma,verdana,sans-serif;*/
color: #000;
font-size: 11px;
background-color: #fefefe;
width: auto;
cursor: default;
border-collapse: separate;
}
.calendar table td {
padding: 2px;
text-align: center;
}
.calendar tbody .disabled {
color: #999;
}
.calendar tbody .emptyrow {
display: none;
}
.calendar tbody .today {
font-weight: bold;
background-color: #eeeeee;
border: 1px solid #aaaaaa !important;
}
.calendar tbody .emptycell {
visibility: hidden;
}
.calendar tbody .active {
background-color: red;
}
.calendar thead .title {
font-weight: bold;
}
.calendar thead .headrow {
}
.calendar thead .active {
background-color: #c4c0b8;
padding: 2px 0px 0px 2px;
}
.calendar thead .hilite {
background-color: #e4e0d8;
}
.calendar tfoot .title {
font-weight: normal;
}
.combo { position: absolute; display: none; width: 4em; top: 0px; left: 0px; cursor: default; border-top: 1px solid #fff; border-right: 1px solid #000; border-bottom: 1px solid #000; border-left: 1px solid #fff; background: #e4e0d8; font-size: smaller; padding: 1px;}
.combo .label { text-align: center; padding: 1px;}
.combo .active { background: #c4c0b8; padding: 0px; border-top: 1px solid #000; border-right: 1px solid #fff; border-bottom: 1px solid #fff; border-left: 1px solid #000;}
.combo .hilite { background: #048; color: #fea;}
.dpContainer {
display: inline;
}
.list-no-squares {
padding: 0px;
list-style-type: none;
margin: 0px;
}
/* --- Listing Element Styles --- */
.picture-padding {
padding: 20px 5px 20px 20px;
vertical-align: top;
width: 120px;
}
.text-padding {
padding: 20px 5px;
}
.file-list-icon
{
padding: 2px 10px 2px 0px;
vertical-align:top;
}
.file-list-label
{
padding: 2px 7px 2px 0px;
vertical-align:top;
}
/* --- Item Rating Styles --- */
.ratingblock, .ratingblock div {
display: -moz-inline-block;
}
.voted {
color: #999;
}
.thanks {
color: #36AA3D;
}
.static {
color: #5D3126;
}
.inline-rating {
display:-moz-inline-block;
display:-moz-inline-box;
display:inline-block;
vertical-align: middle;
}
.star-rating,
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus,
.star-rating .current-rating{
background: url('@templates_base@/platform/img/starrating.gif') left -1000px repeat-x;
}
.star-rating {
position:relative;
width:125px;
height:25px;
overflow:hidden;
list-style:none;
margin:0;
padding:0;
background-position: left top;
}
.star-rating li {
display: inline;
}
.star-rating a,
.star-rating .current-rating {
position:absolute;
top:0;
left:0;
text-indent:-1000em;
height:25px;
line-height:25px;
outline:none;
overflow:hidden;
border: none;
}
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus {
background-position: left bottom;
}
.star-rating a.r1-unit { width:20%;z-index:6; }
.star-rating a.r2-unit { width:40%;z-index:5; }
.star-rating a.r3-unit { width:60%;z-index:4; }
.star-rating a.r4-unit { width:80%; z-index:3; }
.star-rating a.r5-unit { width:100%; z-index:2; }
.star-rating .current-rating { z-index:1; background-position: left center; }
.small-star {
width:50px;
height:10px;
}
.small-star, .small-star a:hover, .small-star a:active,
.small-star a:focus, .small-star .current-rating {
background-image: url('star_small.gif');
line-height: 10px;
height: 10px;
}
/* --- Unprocessed Styles --- */
.text-title {
font-size: 12px;
font-weight: bold;
color: #1769b5;
}
a.text-title {
font-size: 12px;
font-weight: bold;
color: #1769b5;
}
a.text-title:hover {
color: #005695;
}
/* ----- Depricated Styles ----- */
.error {
color: magenta;
}
.static {
color: #00CC66;
}
.image_boder {
border: 1px solid #CDCECD;
}
.table-border {
border: 1px solid #EAEAEA;
}
.information-background {
background-color: #F6F6FF;
}
#sitemap ul {
margin:0 0 10px 10px;
padding:0 0 0 10px;
}
#sitemap ul li {
color: #0060BB;
list-style-image: none;
list-style-position: outside;
list-style-type: disc;
padding: 5px 0 0;
}
\ No newline at end of file
Index: branches/1.3.x/platform/designs/default_design.des.tpl
===================================================================
--- branches/1.3.x/platform/designs/default_design.des.tpl (revision 15664)
+++ branches/1.3.x/platform/designs/default_design.des.tpl (revision 15665)
@@ -1,150 +1,157 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<inp2:m_if check="st_Field" name="RequireLogin" db="db">
<inp2:m_RequireLogin login_template="platform/login/register" />
</inp2:m_if>
<inp2:m_if check="st_Field" name="RequireSSL" db="db">
<inp2:m_CheckSSL mode="required"/>
</inp2:m_if>
<inp2:m_DefaultParam item_prefix=""/>
<inp2:m_CheckSSL/>
<inp2:m_include template="platform/elements/side_boxes.elm" strip_nl="1"/>
<inp2:m_include template="platform/elements/content_boxes.elm" strip_nl="1"/>
<inp2:m_include template="platform/elements/forms.elm" strip_nl="1"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<inp2:m_DefineElement name="cms_page_title">
<inp2:st_PageInfo type="htmlhead_title" html_escape="1"/>
</inp2:m_DefineElement>
<title><inp2:m_GetConfig name="Site_Name"/> :: <inp2:m_RenderElement name="page_title" default_element="cms_page_title" no_editing="1"/></title>
<!--## Include module specific HEADER (META INFORMATION inside) template ##-->
<inp2:m_ModuleInclude template="elements/html_head.elm" in-portal_template="platform/elements/html_head.elm"/>
<link rel="stylesheet" rev="stylesheet" href="<inp2:m_Compress from='all_css'/>" type="text/css" />
<script type="text/javascript" src="<inp2:m_Compress from='all_js'/>"></script>
<script type="text/javascript">
+ FormManager.init(
+ {
+ url: '<inp2:m_Link template="#TEMPLATE#" js_escape="1" __NO_REWRITE__="1" no_amp="1"/>',
+ noErrorsHTML: ''
+ }
+ );
+
var aRatingManager = new RatingManager('<inp2:m_Link template="index" events[#PREFIX#]="OnMakeVote" rating="#VOTE#" id="#ID#" no_amp="1" size="#SIZE#"/>');
<inp2:m_Cache key="prefix:lang;skip_var:t,page,per_page,sort_by">
<inp2:m_DefineElement name="ml_selector_language_element">
<inp2:Field name="LanguageId"/>: {'on': '<inp2:Field name="IconURL" js_ecape="1"/>', 'off': '<inp2:Field name="IconDisabledURL" js_ecape="1"/>'}
<inp2:m_ifnot check="m_Param" name="is_last">,</inp2:m_ifnot>
</inp2:m_DefineElement>
var aMultiLanguageSelector = new MultiLanguageSelector({<inp2:lang.enabled_PrintList render_as="ml_selector_language_element" per_page="-1" no_editing="1" strip_nl="2"/>}, <inp2:m_Get name="m_lang"/>);
</inp2:m_Cache>
</script>
<inp2:m_DefineElement name="default_add_to_head"></inp2:m_DefineElement>
<inp2:m_RenderElement name="add_to_head" default_element="default_add_to_head" no_editing="1"/>
<inp2:st_EditingScripts/>
<!--## /Include module specific HEADER template ##-->
</head>
<body>
<inp2:st_EditPage mode="start" item_prefix="$item_prefix"/>
<div align="left">
<div align="left" style="width:100%">
<table class="fullwidth">
<tr>
<td>
<inp2:m_include template="platform/elements/header.elm"/>
</td>
</tr>
<tr>
<td>
<inp2:m_include template="platform/elements/menu.elm"/>
</td>
</tr>
</table>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt=""/><br />
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" alt=""/><br />
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt=""/><br />
<table class="fullwidth">
<tr>
<!-- SIDEBAR -->
<td style="width: 200px;" valign="top">
<inp2:m_DefineElement name="cms_sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_RenderElement name="sidebar" default_element="cms_sidebar"/>
</td>
<!-- /SIDEBAR -->
<!-- SEPARATOR -->
<td width="3" class="vertical-separator" style="width: 3px;">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br />
</td>
<!-- /SEPARATOR -->
<!-- CONTENT -->
<td style="width: auto;" valign="top">
<inp2:m_DefineElement name="cms_content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:st_PageInfo type="title"/>
</inp2:m_Capture>
<inp2:st_ContentBlock num="1"/>
</inp2:m_RenderElement>
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_RenderElement name="content" default_element="cms_content"/>
<br />
</td>
<!-- /CONTENT -->
<!--## REMOVE THIS LINE TO UNCOMMENT
<!-- SEPARATOR -->
<td width="3" class="vertical-separator">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br />
</td>
<!-- /SEPARATOR -->
<!-- RIGHT-SIDEBAR WITH BANNER -->
<td style="width: 200px;" valign="top">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/banners/banner_right.elm"/>
</div>
</div>
</td>
<!-- /RIGHT-SIDEBAR WITH BANNER -->
REMOVE THIS LINE TO UNCOMMENT ##-->
</tr>
</table>
<table class="fullwidth">
<tr>
<td >
<inp2:m_include template="platform/elements/footer.elm"/>
</td>
</tr>
</table>
</div>
</div>
<inp2:st_EditPage mode="end"/>
</body>
</html>
\ No newline at end of file
Index: branches/1.3.x/platform/elements/html_head.elm.tpl
===================================================================
--- branches/1.3.x/platform/elements/html_head.elm.tpl (revision 15664)
+++ branches/1.3.x/platform/elements/html_head.elm.tpl (revision 15665)
@@ -1,25 +1,29 @@
-
<!--## Meta Info (Keywords and Description) ##-->
<meta http-equiv="Content-Type" content="text/html; charset=<inp2:m_GetConst name='CHARSET'/>" />
<link rel="icon" href="<inp2:m_BaseURL/>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<inp2:m_BaseURL/>favicon.ico" type="image/x-icon" />
<meta name="Description" content="<inp2:st_PageInfo type='meta_description'/>" />
<meta name="Keywords" content="<inp2:st_PageInfo type='meta_keywords'/>" />
<!--## /Meta Keywords and Description ##-->
<inp2:m_ifnot check="m_GetConst" name="EDITING_MODE">
<inp2:m_Compress files="platform/inc/jquery/thickbox/thickbox.css" to="all_css"/>
</inp2:m_ifnot>
<inp2:m_Compress files="platform/inc/styles.css" to="all_css"/>
-<inp2:m_Compress files="platform/inc/script.js|platform/inc/ajax.js|platform/inc/calendar.js" to="all_js"/>
+<inp2:m_Compress files="platform/inc/script.js|platform/inc/ajax.js|platform/inc/calendar.js|platform/inc/form_manager.js" to="all_js"/>
+
+<inp2:m_if check="m_GetConfig" name="TypeKitId">
+ <script type="text/javascript" src="//use.typekit.com/<inp2:m_GetConfig name='TypeKitId'/>.js"></script>
+ <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
+</inp2:m_if>
<script type="text/javascript">var inportalBase = '<inp2:m_TemplatesBase module="In-Portal"/>';</script>
<script type="text/javascript" src="<inp2:m_TemplatesBase module='In-Portal'/>inc/jquery/jquery.pack.js"></script>
<inp2:m_ifnot check="m_GetConst" name="EDITING_MODE">
<inp2:m_Compress files="platform/inc/jquery/thickbox/thickbox.js" to="all_js"/>
</inp2:m_ifnot>
Index: branches/1.3.x/platform/elements/forms.elm.tpl
===================================================================
--- branches/1.3.x/platform/elements/forms.elm.tpl (revision 15664)
+++ branches/1.3.x/platform/elements/forms.elm.tpl (revision 15665)
@@ -1,603 +1,506 @@
+<inp2:m_Set tab_index="1"/>
+
<inp2:m_DefineElement name="error_message">
<table class="warning-message fullwidth">
<tr>
<td width="30">
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/warning_icon.gif" width="21" height="18" alt=""/>
+ <img src="<inp2:m_TemplatesBase module='In-Portal'/>img/warning_icon.gif" width="21" height="18" alt=""/>
</td>
<td>
<inp2:m_phrase name="lu_Warning"/>
</td>
</tr>
</table>
<br />
<inp2:m_phrase name="lu_AProblemInForm"/><br />
</inp2:m_DefineElement>
<inp2:m_DefineElement name="subsection" break="1">
- <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
+ <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module='In-Portal'/>img/s.gif" width="3" height="1" alt=""/><br /></div>
<div class="sub-section-header"><inp2:m_Phrase label="$title"/></div>
- <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
+ <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module='In-Portal'/>img/s.gif" width="3" height="1" alt=""/><br /></div>
<inp2:m_if check="m_Param" name="break">
<br/>
</inp2:m_if>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_buttons" width="default">
<tr>
<td colspan="2">
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" />
+ <img src="<inp2:m_TemplatesBase module='In-Portal'/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" />
</td>
</tr>
<tr>
- <td style="width: <inp2:m_if check="m_ParamEquals" name="width" value="default">140<inp2:m_else/><inp2:m_Param name="width"/></inp2:m_if>px">&nbsp;
+ <td style="width: <inp2:m_if check='m_Param' name='width' equals_to='default'>140<inp2:m_else/><inp2:m_Param name='width'/></inp2:m_if>px">&nbsp;
</td>
<td>
<br />
<inp2:m_Param name="content"/>
<br /><br />
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_field_separator" no_editing="1" is_last="0">
<inp2:m_if check="m_ParamEquals" name="is_last" value="0">
<tr>
<td colspan="2">
- <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
+ <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module='In-Portal'/>img/s.gif" width="3" height="1" alt=""/><br /></div>
</td>
</tr>
</inp2:m_if>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_field_caption" no_editing="1" additional_render_as="" title="">
+<inp2:m_DefineElement name="form_row" prefix="" field="" error_field_suffix="" title="lu_fld_{$field}" hint_label="" is_last="0" field_type="" error_position="top">
<inp2:m_inc param="tab_index" by="1"/>
- <td class="field-name" nowrap>
- <inp2:m_if check="m_Param" name="title">
- <label for="<inp2:{$prefix}_InputName field='$field'/>">
- <span <inp2:m_if check="{$prefix}_HasError" field="$field">class="field-required"</inp2:m_if>>
- <inp2:m_phrase label="$title"/></span><inp2:m_if check="{$prefix}_IsRequired" field="$field"><span class="field-required"> *</span></inp2:m_if>:
- </label>
- <inp2:m_if check="m_Param" name="additional_render_as">
- <inp2:m_RenderElement name="$additional_render_as" pass_params="1"/>
+
+ <tr class="<inp2:m_odd_even odd='table_color1' even='table_color2'/><inp2:m_if check='{$prefix}_HasError' field='{$field}{$error_field_suffix}'> error</inp2:m_if>" id="<inp2:$prefix_InputName name='$field'/>_row">
+ <td class="field-name" nowrap>
+ <inp2:m_if check="m_Param" name="title">
+ <label for="<inp2:{$prefix}_InputName field='{$field}{$error_field_suffix}'/>">
+ <inp2:m_phrase label="$title"/><inp2:m_if check="{$prefix}_IsRequired" field="{$field}{$error_field_suffix}"><span class="field-required"> *</span></inp2:m_if>:
+ </label>
+ <inp2:m_if check="m_Param" name="additional_render_as">
+ <inp2:m_RenderElement name="$additional_render_as" pass_params="1"/>
+ </inp2:m_if>
+ <inp2:m_else/>
+ &nbsp;
+ </inp2:m_if>
+ </td>
+
+ <td class="field-value" id="<inp2:{$prefix}_InputName field='$field'/>_field_cell">
+ <inp2:m_if check="m_Param" name="error_position" equals_to="top">
+ <inp2:m_RenderElement name="error_msg_container" pass_params="1"/>
</inp2:m_if>
- <inp2:m_else/>
- &nbsp;
- </inp2:m_if>
- </td>
-</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_label" as_label="" currency="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td valign="top" class="field-value">
- <inp2:{$prefix}_Field field="$field" as_label="$as_label" currency="$currency"/>
+ <inp2:m_Param name="content" pass_params="1"/>
+
+ <inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
+ <span class="small"><inp2:$prefix_FieldHintLabel title_label="$title" direct_label="$hint_label"/></span>
+ </inp2:m_if>
+
+ <inp2:m_if check="m_Param" name="error_position" equals_to="right">
+ <inp2:m_RenderElement name="error_msg_container" html_element="span" pass_params="1"/>
+ </inp2:m_if>
+
+ <script type="text/javascript">
+ FormManager.registerField('<inp2:m_Param name="prefix"/>', '<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="formatter" equals_to="kMultiLanguage">l<inp2:m_Get name="m_lang"/>_</inp2:m_if><inp2:m_Param name="field"/>', undefined, '<inp2:m_Param name="field_type"/>');
+ </script>
</td>
</tr>
+
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_label" as_label="" currency="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td valign="top" class="field-value">
- <inp2:{$prefix}_Field field="$field" as_label="$as_label" currency="$currency"/>
- <input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field field="$field" db="db"/>" />
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="error_msg_container" html_element="div" error_field_suffix="">
+ <<inp2:m_param name="html_element"/> <inp2:m_if check="{$prefix}_HasError" field="{$field}{$error_field_suffix}">class="field-error"</inp2:m_if> id="<inp2:{$prefix}_InputName field='$field'/>_status_cell">
+ <inp2:m_if check="{$prefix}_HasError" field="{$field}{$error_field_suffix}">
+ <inp2:{$prefix}_Error field="{$field}{$error_field_suffix}"/>
+ </inp2:m_if>
+ </<inp2:m_param name="html_element"/>>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_box" style="" maxlength="" no_editing="1" is_last="0" title="">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <input type="text" class="input-text" name="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field field="$field"/>" tabindex="<inp2:m_get param="tab_index"/>" maxlength="<inp2:m_param name="maxlength"/>" style="<inp2:m_param name="style"/>">
- <inp2:m_if check="m_Param" name="hint_label"><span class="small"><inp2:m_phrase label="$hint_label"/></span></inp2:m_if>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_label" as_label="" currency="" field_type="label" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:{$prefix}_Field field="$field" as_label="$as_label" currency="$currency"/>
+ </inp2:m_RenderElement>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="inp_edit_label" as_label="" currency="" field_type="label" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:{$prefix}_Field field="$field" as_label="$as_label" currency="$currency"/>
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" value="<inp2:{$prefix}_Field field='$field' db='db'/>" />
+ </inp2:m_RenderElement>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="inp_edit_box" style="" maxlength="" field_type="text" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="text" class="input-text" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" value="<inp2:{$prefix}_Field field='$field'/>" tabindex="<inp2:m_get param='tab_index'/>" maxlength="<inp2:m_param name='maxlength'/>" style="<inp2:m_param name='style'/>"/>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="ml_input_element">
<inp2:Field name="LanguageId" result_to_var="language_id"/>
- <div id="<inp2:{$prefix}_InputName field="l{$language_id}_{$field}"/>_input"<inp2:m_ifnot check="{$prefix}_LanguageVisible" field="l{$language_id}_{$field}"> style="display: none;"</inp2:m_ifnot>>
+ <div id="<inp2:{$prefix}_InputName field='l{$language_id}_{$field}'/>_input"<inp2:m_ifnot check="{$prefix}_LanguageVisible" field="l{$language_id}_{$field}"> style="display: none;"</inp2:m_ifnot>>
<inp2:m_if check="{$prefix}_HasError" field="l{$language_id}_{$field}">
<span class="field-error"><inp2:{$prefix}_Error field="l{$language_id}_{$field}"/></span><br/>
</inp2:m_if>
<div style="float: left; height: 15px; vertical-align: top; width: auto;">
<input type="text" class="input-text" name="<inp2:{$prefix}_InputName field='l{$language_id}_{$field}'/>" id="<inp2:{$prefix}_InputName field='l{$language_id}_{$field}'/>" value="<inp2:{$prefix}_Field field='l{$language_id}_{$field}' format='no_default'/>" tabindex="<inp2:m_get param='tab_index'/>" maxlength="<inp2:m_param name='maxlength'/>" style="<inp2:m_param name='style'/>">
</div>
<div style="float: left; margin-left: 3px; height: 15px; vertical-align: top; width: auto;">
<inp2:m_if check="Field" name="IconURL">
<img src="<inp2:m_TemplatesBase module='In-Portal'/>img/language_icons/<inp2:Field name='IconURL'/>" alt="<inp2:Field name='LocalName' html_escape='1'/>" border="0"/>
<inp2:m_else/>
<inp2:Field name="LocalName"/>
</inp2:m_if>
</div>
</div>
<div style="clear: both;"></div>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="field_language_element">
<inp2:Field name="LanguageId" result_to_var="language_id"/>
<a href="#" id="<inp2:{$prefix}_InputName field="l{$language_id}_{$field}"/>_flag">
<inp2:m_if check="Field" name="IconURL">
<inp2:m_if check='SelectedLanguage'>
<img src="<inp2:m_TemplatesBase module='In-Portal'/>img/language_icons/<inp2:Field name='IconDisabledURL'/>" alt="<inp2:Field name='LocalName' html_escape='1'/>" border="0"/>
<inp2:m_else/>
<img src="<inp2:m_TemplatesBase module='In-Portal'/>img/language_icons/<inp2:Field name='IconURL'/>" alt="<inp2:Field name='LocalName' html_escape='1'/>" border="0"/>
</inp2:m_if>
<inp2:m_else/>
<inp2:Field name="LocalName"/>
</inp2:m_if>
</a>
<inp2:m_ifnot check="m_Param" name="is_last"> </inp2:m_ifnot>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="field_languages_element">
<inp2:m_ifnot check="{$prefix}_HasLanguageError" field="$field">
<br/>
<inp2:lang.enabled_PrintList render_as="field_language_element" pass_params="1" strip_nl="2"/>
</inp2:m_ifnot>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_box_ml" style="" maxlength="" no_editing="1" is_last="0" title="">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" additional_render_as="field_languages_element" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:lang.enabled_PrintList render_as="ml_input_element" pass_params="1"/>
-
- <inp2:m_if check="m_Param" name="hint_label"><span class="small"><inp2:m_phrase label="$hint_label"/></span></inp2:m_if>
- </td>
- </tr>
- <script type="text/javascript">
- <inp2:m_Get name="m_lang" result_to_var="current_language"/>
- aMultiLanguageSelector.registerControl('<inp2:{$prefix}_InputName field="l{$current_language}_{$field}"/>');
- </script>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
-</inp2:m_DefineElement>
-
-<inp2:m_DefineElement name="inp_edit_password" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <input type="password" class="input-text" name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field name='{$field}_plain'/>" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>" />
- <inp2:m_if check="m_Param" name="hint_label"><span class="small"><inp2:m_phrase label="$hint_label"/></span></inp2:m_if>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_box_ml" style="" maxlength="" field_type="text" no_editing="1" is_last="0" error_position="none" additional_render_as="field_languages_element">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:lang.enabled_PrintList render_as="ml_input_element" pass_params="1"/>
+
+ <script type="text/javascript">
+ <inp2:m_Get name="m_lang" result_to_var="current_language"/>
+ aMultiLanguageSelector.registerControl('<inp2:{$prefix}_InputName field="l{$current_language}_{$field}"/>');
+ </script>
+ </inp2:m_RenderElement>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="inp_edit_password" style="" field_type="text" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="password" class="input-text" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" value="<inp2:{$prefix}_Field name='{$field}_plain'/>" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_param name='style'/>" />
+ </inp2:m_RenderElement>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="inp_edit_upload" style="" field_type="upload" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="file" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_param name='style'/>"/>
+ <inp2:m_if check="{$prefix}_Field" name="$field" db="db">
+ (<inp2:{$prefix}_Field field="$field"/>)
+ </inp2:m_if>
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='$field'/>[upload]" value="<inp2:{$prefix}_Field field='$field'/>" />
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_upload" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <input type="file" name="<inp2:{$prefix}_InputName field="$field"/>" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>">
- <inp2:m_if check="{$prefix}_FieldEquals" name="$field" value="" inverse="inverse">
- (<inp2:{$prefix}_Field field="$field"/>)
- </inp2:m_if>
- <input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>[upload]" value="<inp2:{$prefix}_Field field="$field"/>" />
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
-</inp2:m_DefineElement>
+<inp2:m_DefineElement name="inp_edit_image_upload" style="" field_type="upload" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:m_if check="{$prefix}_Field" name="$field">
+ <a href="<inp2:{$prefix}_ImageSrc field='$field' MaxWidth='fullsize'/>" target="_blank">
+ <inp2:{$prefix}_Image field="$field" render_as="image_element" DefaultImage="platform/img/no_picture.gif" MaxWidth="thumbnail" align="absmiddle"/>
+ </a>
+ <br />
+ <table cellpadding="0" cellspacing="0" style="margin-top: 3px; margin-bottom: 3px;">
+ <tr>
+ <td>
+ <input type="hidden" id="<inp2:{$prefix}_InputName field='Delete{$field}'/>" name="<inp2:{$prefix}_InputName field='Delete{$field}'/>" value="0" />
+ <input type="checkbox" id="_cb_<inp2:{$prefix}_InputName field='Delete{$field}'/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field='Delete{$field}'/>'));">
+ </td>
+ <td style="padding-left: 3px;">
+ <label for="_cb_<inp2:{$prefix}_InputName field='Delete{$field}'/>"><inp2:m_phrase name="lu_btn_DeleteImage"/></label>
+ </td>
+ </tr>
+ </table>
+ </inp2:m_if>
-<inp2:m_DefineElement name="inp_edit_image_upload" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <inp2:m_if check="{$prefix}_Field" name="$field">
- <a href="<inp2:{$prefix}_ImageSrc field="$field" MaxWidth="fullsize"/>" target="_blank">
- <inp2:{$prefix}_Image field="$field" render_as="image_element" DefaultImage="platform/img/no_picture.gif" MaxWidth="thumbnail" align="absmiddle"/>
- </a>
- <br />
- <table cellpadding="0" cellspacing="0" style="margin-top: 3px; margin-bottom: 3px;">
- <tr>
- <td>
- <input type="hidden" id="<inp2:{$prefix}_InputName field="Delete{$field}"/>" name="<inp2:{$prefix}_InputName field="Delete{$field}"/>" value="0" />
- <input type="checkbox" id="_cb_<inp2:{$prefix}_InputName field="Delete{$field}"/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field="Delete{$field}"/>'));">
- </td>
- <td style="padding-left: 3px;">
- <label for="_cb_<inp2:{$prefix}_InputName field="Delete{$field}"/>"><inp2:m_phrase name="lu_btn_DeleteImage"/></label>
- </td>
- </tr>
- </table>
- </inp2:m_if>
- <input type="file" name="<inp2:{$prefix}_InputName field="$field"/>" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>">
- <input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>[upload]" value="<inp2:{$prefix}_Field field="$field"/>" /><br />
- <input type="text" name="<inp2:{$prefix}_InputName field="{$field}Alt"/>" value="<inp2:{$prefix}_Field field='{$field}Alt'/>" style="<inp2:m_param name="style"/>">
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ <input type="file" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_param name='style'/>"/>
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='$field'/>[upload]" value="<inp2:{$prefix}_Field field='$field'/>" /><br />
+ <input type="text" name="<inp2:{$prefix}_InputName field='{$field}Alt'/>" value="<inp2:{$prefix}_Field field='{$field}Alt'/>" style="<inp2:m_param name='style'/>">
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_file_upload" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <inp2:m_if check="{$prefix}_Field" name="$field">
- <a href="<inp2:{$prefix}_DownloadFileLink field="$field"/>">
- <inp2:{$prefix}_Field name="$field"/>
- </a>
- <br />
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <input type="hidden" id="<inp2:{$prefix}_InputName field="Delete{$field}"/>" name="<inp2:{$prefix}_InputName field="Delete{$field}"/>" value="0" />
- <input type="checkbox" id="_cb_<inp2:{$prefix}_InputName field="Delete{$field}"/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field="Delete{$field}"/>'));">
- </td>
- <td>
- <label for="_cb_<inp2:{$prefix}_InputName field="Delete{$field}"/>"><inp2:m_phrase name="lu_btn_DeleteFile"/></label>
- </td>
- </tr>
- </table>
- </inp2:m_if>
- <input type="file" name="<inp2:{$prefix}_InputName field="$field"/>" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>">
- <input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>[upload]" value="<inp2:{$prefix}_Field field="$field"/>" />
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_file_upload" style="" field_type="upload" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:m_if check="{$prefix}_Field" name="$field">
+ <a href="<inp2:{$prefix}_DownloadFileLink field='$field'/>">
+ <inp2:{$prefix}_Field name="$field"/>
+ </a>
+ <br />
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <input type="hidden" id="<inp2:{$prefix}_InputName field='Delete{$field}'/>" name="<inp2:{$prefix}_InputName field='Delete{$field}'/>" value="0" />
+ <input type="checkbox" id="_cb_<inp2:{$prefix}_InputName field='Delete{$field}'/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field='Delete{$field}'/>'));">
+ </td>
+ <td>
+ <label for="_cb_<inp2:{$prefix}_InputName field='Delete{$field}'/>"><inp2:m_phrase name="lu_btn_DeleteFile"/></label>
+ </td>
+ </tr>
+ </table>
+ </inp2:m_if>
+ <input type="file" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_param name='style'/>"/>
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='$field'/>[upload]" value="<inp2:{$prefix}_Field field='$field'/>" />
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_hidden" db="">
- <input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field field="$field" db="$db"/>" />
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" value="<inp2:{$prefix}_Field field='$field' db='$db'/>" />
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_date" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="{$field}_date"/></span><br />
- </inp2:m_if>
- <input type="text" class="input-text" name="<inp2:{$prefix}_InputName field="{$field}_date"/>" id="<inp2:{$prefix}_InputName field="{$field}_date"/>" value="<inp2:{$prefix}_Field field="{$field}_date" format="_regional_InputDateFormat"/>" tabindex="<inp2:m_get param="tab_index"/>" size="<inp2:{$prefix}_Format field="{$field}_date" input_format="1" edit_size="edit_size"/>" style="<inp2:m_param name="style"/>" datepickerIcon="<inp2:m_TemplatesBase module="In-Portal"/>img/calendar_icon.gif">&nbsp;<span class="small">(<inp2:{$prefix}_Format field="{$field}_date" input_format="1" human="true"/>)</span>
- <script type="text/javascript">
- initCalendar("<inp2:{$prefix}_InputName field="{$field}_date"/>", "<inp2:{$prefix}_Format field="{$field}_date" input_format="1"/>");
- </script>
- <input type="hidden" name="<inp2:{$prefix}_InputName field="{$field}_time"/>" id="<inp2:{$prefix}_InputName field="{$field}_time" input_format="1"/>" value="" />
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_date" style="" field_type="date" no_editing="1" is_last="0" error_field_suffix="_date">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="text" class="input-text" name="<inp2:{$prefix}_InputName field='{$field}_date'/>" id="<inp2:{$prefix}_InputName field='{$field}_date'/>" value="<inp2:{$prefix}_Field field='{$field}_date' format='_input_'/>" tabindex="<inp2:m_get param='tab_index'/>" size="<inp2:{$prefix}_Format field='{$field}_date' input_format='1' edit_size='edit_size'/>" style="<inp2:m_param name='style'/>" datepickerIcon="<inp2:m_TemplatesBase module='In-Portal'/>img/calendar_icon.gif">&nbsp;<span class="small">(<inp2:{$prefix}_Format field="{$field}_date" input_format="1" human="true"/>)</span>
+ <script type="text/javascript">
+ initCalendar("<inp2:{$prefix}_InputName field='{$field}_date'/>", "<inp2:{$prefix}_Format field='{$field}_date' input_format='1'/>");
+ </script>
+
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='{$field}_time'/>" id="<inp2:{$prefix}_InputName field='{$field}_time' input_format='1'/>" value="" />
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_time" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table-color1" even="table-color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <input type="text" name="<inp2:{$prefix}_InputName field="{$field}_time"/>" id="<inp2:{$prefix}_InputName field="{$field}_time"/>" value="<inp2:{$prefix}_Field field="{$field}_time" format="_regional_InputTimeFormat"/>" tabindex="<inp2:m_get param="tab_index"/>" size="<inp2:{$prefix}_Format field="{$field}_time" input_format="1" edit_size="edit_size"/>" style="<inp2:m_param name="style"/>">&nbsp;
- <span class="small">(<inp2:{$prefix}_Format field="{$field}_time" input_format="1" human="true"/>)</span>
+<inp2:m_DefineElement name="inp_edit_time" style="" field_type="time" no_editing="1" is_last="0" error_field_suffix="_time">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="text" name="<inp2:{$prefix}_InputName field='{$field}_time'/>" id="<inp2:{$prefix}_InputName field='{$field}_time'/>" value="<inp2:{$prefix}_Field field='{$field}_time' format='_input_'/>" tabindex="<inp2:m_get param='tab_index'/>" size="<inp2:{$prefix}_Format field='{$field}_time' input_format='1' edit_size='edit_size'/>" style="<inp2:m_param name='style'/>"/>&nbsp;
+ <span class="small">(<inp2:{$prefix}_Format field="{$field}_time" input_format="1" human="true"/>)</span>
- <input type="hidden" name="<inp2:{$prefix}_InputName field="{$field}_date"/>" id="<inp2:{$prefix}_InputName field="{$field}_date" input_format="1"/>" value="" />
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ <input type="hidden" name="<inp2:{$prefix}_InputName field='{$field}_date'/>" id="<inp2:{$prefix}_InputName field='{$field}_date' input_format='1'/>" value="" />
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_date_time" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <input type="text" name="<inp2:{$prefix}_InputName field="{$field}_date"/>" id="<inp2:{$prefix}_InputName field="{$field}_date"/>" value="<inp2:{$prefix}_Field field="{$field}_date" format="_regional_InputDateFormat"/>" tabindex="<inp2:m_get param="tab_index"/>" size="<inp2:{$prefix}_Format field="{$field}_date" input_format="1" edit_size="edit_size"/>" style="<inp2:m_param name="style"/>" datepickerIcon="<inp2:m_ProjectBase/>core/admin_templates/img/calendar_icon.gif">
- <span class="small">(<inp2:{$prefix}_Format field="{$field}_date" input_format="1" human="true"/>)</span>
- <script type="text/javascript">
- initCalendar("<inp2:{$prefix}_InputName field="{$field}_date"/>", "<inp2:{$prefix}_Format field="{$field}_date" input_format="1"/>");
- </script>
- &nbsp;<input type="text" name="<inp2:{$prefix}_InputName field="{$field}_time"/>" id="<inp2:{$prefix}_InputName field="{$field}_time"/>" value="<inp2:{$prefix}_Field field="{$field}_time" format="_regional_InputTimeFormat"/>" tabindex="<inp2:m_get param="tab_index"/>" size="<inp2:{$prefix}_Format field="{$field}_time" input_format="1" edit_size="edit_size"/>" style="<inp2:m_param name="style"/>"><span class="small"> (<inp2:{$prefix}_Format field="{$field}_time" input_format="1" human="true"/>)</span>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_date_time" style="" field_type="date_time" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="text" name="<inp2:{$prefix}_InputName field='{$field}_date'/>" id="<inp2:{$prefix}_InputName field='{$field}_date'/>" value="<inp2:{$prefix}_Field field='{$field}_date' format='_input_'/>" tabindex="<inp2:m_get param='tab_index'/>" size="<inp2:{$prefix}_Format field='{$field}_date' input_format='1' edit_size='edit_size'/>" style="<inp2:m_param name='style'/>" datepickerIcon="<inp2:m_ProjectBase/>core/admin_templates/img/calendar_icon.gif"/>
+ <span class="small">(<inp2:{$prefix}_Format field="{$field}_date" input_format="1" human="true"/>)</span>
+ <script type="text/javascript">
+ initCalendar("<inp2:{$prefix}_InputName field='{$field}_date'/>", "<inp2:{$prefix}_Format field='{$field}_date' input_format='1'/>");
+ </script>
+ &nbsp;<input type="text" name="<inp2:{$prefix}_InputName field='{$field}_time'/>" id="<inp2:{$prefix}_InputName field='{$field}_time'/>" value="<inp2:{$prefix}_Field field='{$field}_time' format='_input_'/>" tabindex="<inp2:m_get param='tab_index'/>" size="<inp2:{$prefix}_Format field='{$field}_time' input_format='1' edit_size='edit_size'/>" style="<inp2:m_param name='style'/>"><span class="small"> (<inp2:{$prefix}_Format field="{$field}_time" input_format="1" human="true"/>)</span>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_textarea" style="" no_editing="1" format="" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <textarea class="input-textarea" tabindex="<inp2:m_get param="tab_index"/>" name="<inp2:{$prefix}_InputName field="$field"/>" cols="<inp2:m_param name="cols"/>" rows="<inp2:m_param name="rows"/>" style="<inp2:m_param name="style"/>"><inp2:{$prefix}_Field field="$field" format="$format"/></textarea>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_textarea" style="" field_type="textarea" no_editing="1" format="" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <textarea class="input-textarea" tabindex="<inp2:m_get param='tab_index'/>" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" cols="<inp2:m_param name='cols'/>" rows="<inp2:m_param name='rows'/>" style="<inp2:m_param name='style'/>"><inp2:{$prefix}_Field field="$field" format="$format"/></textarea>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="ml_textarea_element">
<inp2:Field name="LanguageId" result_to_var="language_id"/>
- <div id="<inp2:{$prefix}_InputName field="l{$language_id}_{$field}"/>_input"<inp2:m_ifnot check="{$prefix}_LanguageVisible" field="l{$language_id}_{$field}"> style="display: none;"</inp2:m_ifnot>>
+ <div id="<inp2:{$prefix}_InputName field='l{$language_id}_{$field}'/>_input"<inp2:m_ifnot check="{$prefix}_LanguageVisible" field="l{$language_id}_{$field}"> style="display: none;"</inp2:m_ifnot>>
<inp2:m_if check="{$prefix}_HasError" field="l{$language_id}_{$field}">
<span class="field-error"><inp2:{$prefix}_Error field="l{$language_id}_{$field}"/></span><br/>
</inp2:m_if>
<div style="float: left; vertical-align: top; width: auto;">
<textarea class="input-textarea" tabindex="<inp2:m_get param='tab_index'/>" name="<inp2:{$prefix}_InputName field='l{$language_id}_{$field}'/>" id="<inp2:{$prefix}_InputName field='l{$language_id}_{$field}'/>" cols="<inp2:m_param name='cols'/>" rows="<inp2:m_param name='rows'/>" style="<inp2:m_param name='style'/>"><inp2:{$prefix}_Field field="l{$language_id}_{$field}" format="no_default"/></textarea>
</div>
<div style="float: left; margin-left: 3px; vertical-align: top; width: auto;">
<inp2:m_if check="Field" name="IconURL">
<img src="<inp2:m_TemplatesBase module='In-Portal'/>img/language_icons/<inp2:Field name='IconURL'/>" alt="<inp2:Field name='LocalName' html_escape='1'/>" border="0"/>
<inp2:m_else/>
<inp2:Field name="LocalName"/>
</inp2:m_if>
</div>
</div>
<div style="clear: both;"></div>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_textarea_ml" style="" maxlength="" no_editing="1" is_last="0" title="">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" additional_render_as="field_languages_element" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:lang.enabled_PrintList render_as="ml_textarea_element" pass_params="1"/>
-
- <inp2:m_if check="m_Param" name="hint_label"><span class="small"><inp2:m_phrase label="$hint_label"/></span></inp2:m_if>
- </td>
- </tr>
- <script type="text/javascript">
- <inp2:m_Get name="m_lang" result_to_var="current_language"/>
- aMultiLanguageSelector.registerControl('<inp2:{$prefix}_InputName field="l{$current_language}_{$field}"/>');
- </script>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_textarea_ml" style="" maxlength="" field_type="textarea" no_editing="1" is_last="0" additional_render_as="field_languages_element">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:lang.enabled_PrintList render_as="ml_textarea_element" pass_params="1"/>
+
+ <script type="text/javascript">
+ <inp2:m_Get name="m_lang" result_to_var="current_language"/>
+ aMultiLanguageSelector.registerControl('<inp2:{$prefix}_InputName field="l{$current_language}_{$field}"/>');
+ </script>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_option_item">
- <option value="<inp2:m_param name="key"/>"<inp2:m_param name="selected"/>><inp2:m_param name="option"/></option>
+ <option value="<inp2:m_param name='key'/>"<inp2:m_param name="selected"/>><inp2:m_param name="option"/></option>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_option_phrase">
- <option value="<inp2:m_param name="key"/>"<inp2:m_param name="selected"/>><inp2:m_phrase label="$option"/></option>
+ <option value="<inp2:m_param name='key'/>"<inp2:m_param name="selected"/>><inp2:m_phrase label="$option"/></option>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_options" style="" has_empty="0" empty_value="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
+<inp2:m_DefineElement name="inp_edit_options" style="" has_empty="0" empty_value="" field_type="select" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <select class="input-select" tabindex="<inp2:m_get param='tab_index'/>" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" style="<inp2:m_param name='style'/>">
+ <inp2:m_if check="{$prefix}_FieldOption" field="$field" option="use_phrases">
+ <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_option_phrase" selected="selected" has_empty="$has_empty" empty_value="$empty_value"/>
+ <inp2:m_else/>
+ <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_option_item" selected="selected" has_empty="$has_empty" empty_value="$empty_value"/>
</inp2:m_if>
- <select class="input-select" tabindex="<inp2:m_get param="tab_index"/>" name="<inp2:{$prefix}_InputName field="$field"/>" style="<inp2:m_param name="style"/>">
- <inp2:m_if check="m_ParamEquals" name="use_phrases" value="1" >
- <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_option_phrase" selected="selected" has_empty="$has_empty" empty_value="$empty_value"/>
- <inp2:m_else/>
- <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_option_item" selected="selected" has_empty="$has_empty" empty_value="$empty_value"/>
- </inp2:m_if>
- </select>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ </select>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_timezone" style="" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <script type="text/javascript">
+ var $timezones = {
+ 'Africa': ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Timbuktu', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek'],
+ 'America': ['America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/Buenos_Aires', 'America/Argentina/Catamarca', 'America/Argentina/ComodRivadavia', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/La_Rioja', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Atikokan', 'America/Atka', 'America/Bahia', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Ensenada', 'America/Fort_Wayne', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Indianapolis', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Knox_IN', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Acre', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Rosario', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Shiprock', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Virgin', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife'],
+ 'Antarctica': ['Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/South_Pole', 'Antarctica/Syowa', 'Antarctica/Vostok'],
+ 'Arctic': ['Arctic/Longyearbyen'],
+ 'Asia': ['Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Ashkhabad', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Choibalsan', 'Asia/Chongqing', 'Asia/Chungking', 'Asia/Colombo', 'Asia/Dacca', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Gaza', 'Asia/Harbin', 'Asia/Ho_Chi_Minh', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Istanbul', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Kashgar', 'Asia/Kathmandu', 'Asia/Katmandu', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macao', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tel_Aviv', 'Asia/Thimbu', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Ujung_Pandang', 'Asia/Ulaanbaatar', 'Asia/Ulan_Bator', 'Asia/Urumqi', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan'],
+ 'Atlantic': ['Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Faroe', 'Atlantic/Jan_Mayen', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley'],
+ 'Australia': ['Australia/ACT', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Canberra', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/LHI', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/North', 'Australia/NSW', 'Australia/Perth', 'Australia/Queensland', 'Australia/South', 'Australia/Sydney', 'Australia/Tasmania', 'Australia/Victoria', 'Australia/West', 'Australia/Yancowinna'],
+ 'Europe': ['Europe/Amsterdam', 'Europe/Andorra', 'Europe/Athens', 'Europe/Belfast', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Nicosia', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Tiraspol', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich'],
+ 'Indian': ['Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion'],
+ 'Pacific': ['Pacific/Apia', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Samoa', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', 'Pacific/Yap'],
+ 'Others': ['UTC']
+ };
- <script type="text/javascript">
- var $timezones = {
- 'Africa': ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Timbuktu', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek'],
- 'America': ['America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/Buenos_Aires', 'America/Argentina/Catamarca', 'America/Argentina/ComodRivadavia', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/La_Rioja', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Atikokan', 'America/Atka', 'America/Bahia', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Ensenada', 'America/Fort_Wayne', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Indianapolis', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Knox_IN', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Acre', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Rosario', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Shiprock', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Virgin', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife'],
- 'Antarctica': ['Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/South_Pole', 'Antarctica/Syowa', 'Antarctica/Vostok'],
- 'Arctic': ['Arctic/Longyearbyen'],
- 'Asia': ['Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Ashkhabad', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Choibalsan', 'Asia/Chongqing', 'Asia/Chungking', 'Asia/Colombo', 'Asia/Dacca', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Gaza', 'Asia/Harbin', 'Asia/Ho_Chi_Minh', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Istanbul', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Kashgar', 'Asia/Kathmandu', 'Asia/Katmandu', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macao', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tel_Aviv', 'Asia/Thimbu', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Ujung_Pandang', 'Asia/Ulaanbaatar', 'Asia/Ulan_Bator', 'Asia/Urumqi', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan'],
- 'Atlantic': ['Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Faroe', 'Atlantic/Jan_Mayen', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley'],
- 'Australia': ['Australia/ACT', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Canberra', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/LHI', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/North', 'Australia/NSW', 'Australia/Perth', 'Australia/Queensland', 'Australia/South', 'Australia/Sydney', 'Australia/Tasmania', 'Australia/Victoria', 'Australia/West', 'Australia/Yancowinna'],
- 'Europe': ['Europe/Amsterdam', 'Europe/Andorra', 'Europe/Athens', 'Europe/Belfast', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Nicosia', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Tiraspol', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich'],
- 'Indian': ['Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion'],
- 'Pacific': ['Pacific/Apia', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Samoa', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', 'Pacific/Yap'],
- 'Others': ['UTC']
- }
+ function change_timezone_group($timezone_group) {
+ var $target = $( jq('#<inp2:InputName name="$field"/>') );
- function change_timezone_group($timezone_group) {
- var $target = $( jq('#<inp2:InputName name="$field"/>') );
+ $target.hide().empty();
+ $target.append('<option value=""></option>');
- $target.hide().empty();
- $target.append('<option value=""></option>');
-
- if ($timezone_group == '') {
- return ;
- }
-
- for (var $i = 0; $i < $timezones[$timezone_group].length; $i++) {
- var $timezone = $timezones[$timezone_group][$i];
- var $selected = $timezone == $current_timezone ? ' selected="selected"' : '';
+ if ($timezone_group == '') {
+ return ;
+ }
- $target.append('<option value="' + $timezone + '" ' + $selected + '>' + $timezone + '</option>');
- }
+ for (var $i = 0; $i < $timezones[$timezone_group].length; $i++) {
+ var $timezone = $timezones[$timezone_group][$i];
+ var $selected = $timezone == $current_timezone ? ' selected="selected"' : '';
- $target.show();
+ $target.append('<option value="' + $timezone + '" ' + $selected + '>' + $timezone + '</option>');
}
- var $current_timezone = '<inp2:Field name="$field"/>';
+ $target.show();
+ }
+
+ var $current_timezone = '<inp2:Field name="$field"/>';
- $(document).ready(
- function () {
- $('#timezone_group').change(
- function ($e) {
- change_timezone_group( $(this).val() );
- }
- );
-
- var $current_timezone_group = '';
-
- for (var $timezone_group in $timezones) {
- if (in_array($current_timezone, $timezones[$timezone_group])) {
- $current_timezone_group = $timezone_group;
- break;
- }
+ $(document).ready(
+ function () {
+ $('#timezone_group').change(
+ function ($e) {
+ change_timezone_group( $(this).val() );
}
+ );
- $('#timezone_group').val($current_timezone_group).change();
+ var $current_timezone_group = '';
+
+ for (var $timezone_group in $timezones) {
+ if (in_array($current_timezone, $timezones[$timezone_group])) {
+ $current_timezone_group = $timezone_group;
+ break;
+ }
}
- );
- </script>
- <select class="input-select" id="timezone_group" tabindex="<inp2:m_Get name='tab_index'/>">
- <option value=""></option>
- <option value="Africa">Africa</option>
- <option value="America">America</option>
- <option value="Antarctica">Antarctica</option>
- <option value="Arctic">Arctic</option>
- <option value="Asia">Asia</option>
- <option value="Atlantic">Atlantic</option>
- <option value="Australia">Australia</option>
- <option value="Europe">Europe</option>
- <option value="Indian">Indian</option>
- <option value="Pacific">Pacific</option>
- <option value="Others">Others</option>
- </select>
- &nbsp;&nbsp;
+ $('#timezone_group').val($current_timezone_group).change();
+ }
+ );
+ </script>
- <select class="input-select" tabindex="<inp2:m_Get name='tab_index'/>" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" style="<inp2:m_Param name='style'/>"></select>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ <select class="input-select" id="timezone_group" tabindex="<inp2:m_Get name='tab_index'/>">
+ <option value=""></option>
+ <option value="Africa">Africa</option>
+ <option value="America">America</option>
+ <option value="Antarctica">Antarctica</option>
+ <option value="Arctic">Arctic</option>
+ <option value="Asia">Asia</option>
+ <option value="Atlantic">Atlantic</option>
+ <option value="Australia">Australia</option>
+ <option value="Europe">Europe</option>
+ <option value="Indian">Indian</option>
+ <option value="Pacific">Pacific</option>
+ <option value="Others">Others</option>
+ </select>
+ &nbsp;&nbsp;
+
+ <select class="input-select" tabindex="<inp2:m_Get name='tab_index'/>" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" style="<inp2:m_Param name='style'/>"></select>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_radio_item" onclick="">
- <input type="radio" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>" <inp2:m_param name="checked"/> name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>"><label for="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>"><inp2:m_param name="option"/></label>&nbsp;
+ <input type="radio" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_param name='style'/>" <inp2:m_param name="checked"/> name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>" value="<inp2:m_param name='key'/>"><label for="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>"><inp2:m_param name="option"/></label>&nbsp;
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_radio_phrase" onclick="">
- <input type="radio" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>" <inp2:m_param name="checked"/> name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>"><label for="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>"><inp2:m_phrase label="$option"/></label>&nbsp;
+ <input type="radio" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_param name='style'/>" <inp2:m_param name="checked"/> name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>" value="<inp2:m_param name='key'/>"><label for="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>"><inp2:m_phrase label="$option"/></label>&nbsp;
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_radio" style="" pass_tabindex="" onclick="" onchange="" use_phrases="1" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <inp2:m_if check="m_ParamEquals" name="use_phrases" value="1">
- <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_radio_phrase" selected="checked"/>
- <inp2:m_else />
- <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_radio_item" selected="checked"/>
- </inp2:m_if>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
-</inp2:m_DefineElement>
-
-<inp2:m_DefineElement name="inp_edit_captcha" style="" title="lu_fld_Captcha" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="Captcha" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="Captcha">
- <span class="field-error"><inp2:{$prefix}_Error field="Captcha"/></span><br />
- </inp2:m_if>
- <img src="<inp2:m_Link template="platform/inc/captcha_image.elm" var="{$prefix}_captcha_code" w="150" h="30"/>" alt="<inp2:m_Phrase name="$title" no_editing="1"/>"/><br />
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="5" alt=""/><br />
- <input type="text" class="input-text" name="<inp2:{$prefix}_InputName field="Captcha"/>" value="<inp2:{$prefix}_Field field="Captcha"/>" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_Param name="style"/>">
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_radio" style="" pass_tabindex="" onclick="" onchange="" field_type="radio" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:m_if check="{$prefix}_FieldOption" field="$field" option="use_phrases">
+ <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_radio_phrase" selected="checked"/>
+ <inp2:m_else />
+ <inp2:{$prefix}_PredefinedOptions field="$field" block="inp_radio_item" selected="checked"/>
+ </inp2:m_if>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_checkbox" style="" no_editing="1" is_last="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td>
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
- <input type="hidden" id="<inp2:{$prefix}_InputName field="$field"/>" name="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field field="$field" db="db"/>" />
- <input tabindex="<inp2:m_get param="tab_index"/>" type="checkbox" id="_cb_<inp2:{$prefix}_InputName field="$field"/>" name="_cb_<inp2:{$prefix}_InputName field="$field"/>" <inp2:{$prefix}_Field field="$field" checked="checked" db="db"/> style="<inp2:m_param name="style"/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field="$field"/>'));">
- <inp2:m_if check="m_Param" name="hint_label"><inp2:m_phrase label="$hint_label"/></inp2:m_if>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_edit_captcha" style="" field='Captcha' title="lu_fld_Captcha" field_type="captcha" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <img src="<inp2:m_Link template='platform/inc/captcha_image.elm' var='{$prefix}_captcha_code' w='150' h='30'/>" alt="<inp2:m_Phrase name='$title' no_editing='1'/>"/><br />
+ <img src="<inp2:m_TemplatesBase module='In-Portal'/>img/s.gif" width="1" height="5" alt=""/><br />
+ <input type="text" class="input-text" name="<inp2:{$prefix}_InputName field='$field'/>" id="<inp2:{$prefix}_InputName field='$field'/>" value="<inp2:{$prefix}_Field field='$field'/>" tabindex="<inp2:m_get param='tab_index'/>" style="<inp2:m_Param name='style'/>"/>
+ </inp2:m_RenderElement>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="inp_edit_checkbox" style="" field_type="checkbox" no_editing="1" is_last="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <input type="hidden" id="<inp2:{$prefix}_InputName field='$field'/>" name="<inp2:{$prefix}_InputName field='$field'/>" value="<inp2:{$prefix}_Field field='$field' db='db'/>" />
+ <input tabindex="<inp2:m_get param='tab_index'/>" type="checkbox" id="_cb_<inp2:{$prefix}_InputName field='$field'/>" name="_cb_<inp2:{$prefix}_InputName field='$field'/>" <inp2:{$prefix}_Field field="$field" checked="checked" db="db"/> style="<inp2:m_param name='style'/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field='$field'/>'));">
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_categories" style="" no_editing="1" is_last="0">
<inp2:m_include template="platform/elements/categories.elm"/>
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
-
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
-
- <select class="input-select" tabindex="<inp2:m_get param="tab_index"/>" id="<inp2:{$prefix}_InputName field="$field"/>_select" style="<inp2:m_param name="style"/>">
- <option value="0"><inp2:m_Phrase name="lu_opt_SelectCategory"/></option>
- <inp2:{$prefix}_CategorySelector render_as="selector_category_element" separator="&raquo;&nbsp;"/>
- </select>
-
- <input type="button" class="button" value="<inp2:m_Phrase label="lu_Add" no_editing="1"/>" onclick="$ItemCategories.AddCategory('&raquo;&amp;nbsp;', $delete_button, <inp2:m_GetConfig name="{$prefix}_MaxCategories"/>);"/><br />
-
- <br />
- <table class="item-categories" id="item_categories">
- <tbody>
-
- <tr>
- <td colspan="2">
- <strong><inp2:m_Phrase name="lu_subsection_Categories"/>:</strong>
- </td>
- </tr>
-
- <inp2:{$prefix}_PrintMoreCategories render_as="more_category_element" field="$field"/>
- </tbody>
- </table>
- <br/>
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <select class="input-select" tabindex="<inp2:m_get param='tab_index'/>" id="<inp2:{$prefix}_InputName field='$field'/>_select" style="<inp2:m_param name='style'/>">
+ <option value="0"><inp2:m_Phrase name="lu_opt_SelectCategory"/></option>
+ <inp2:{$prefix}_CategorySelector render_as="selector_category_element" separator="&raquo;&nbsp;"/>
+ </select>
+
+ <input type="button" class="button" value="<inp2:m_Phrase label='lu_Add' no_editing='1'/>" onclick="$ItemCategories.AddCategory('&raquo;&amp;nbsp;', $delete_button, <inp2:m_GetConfig name='{$prefix}_MaxCategories'/>);"/><br />
+
+ <br />
+ <table class="item-categories" id="item_categories">
+ <tbody>
+
+ <tr>
+ <td colspan="2">
+ <strong><inp2:m_Phrase name="lu_subsection_Categories"/>:</strong>
+ </td>
+ </tr>
+
+ <inp2:{$prefix}_PrintMoreCategories render_as="more_category_element" field="$field"/>
+ </tbody>
+ </table>
+ <br/>
- <inp2:m_RenderElement name="inp_edit_hidden" prefix="$prefix" field="$field"/>
+ <inp2:m_RenderElement name="inp_edit_hidden" prefix="$prefix" field="$field"/>
- <script type="text/javascript">
- var $delete_button = '&nbsp;&nbsp;<input type="button" class="delete-button" value="<inp2:m_Phrase label="lu_btn_Delete" no_editing="1"/>" onclick="$ItemCategories.DeleteCategory(#CATEGORY_ID#);"/>';
- var $phrases = ['<inp2:m_Phrase name="lu_error_CategoryLimitReached" escape="1"/>', '<inp2:m_Phrase name="lu_error_AlreadyAdded"/>'];
- var $ItemCategories = new ItemCategories('item_categories', '<inp2:{$prefix}_InputName field="$field"/>', <inp2:m_Get name="m_cat_id"/>, $phrases);
- </script>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ <script type="text/javascript">
+ var $delete_button = '&nbsp;&nbsp;<input type="button" class="delete-button" value="<inp2:m_Phrase label='lu_btn_Delete' no_editing='1'/>" onclick="$ItemCategories.DeleteCategory(#CATEGORY_ID#);"/>';
+ var $phrases = ['<inp2:m_Phrase name="lu_error_CategoryLimitReached" escape="1"/>', '<inp2:m_Phrase name="lu_error_AlreadyAdded"/>'];
+ var $ItemCategories = new ItemCategories('item_categories', '<inp2:{$prefix}_InputName field="$field"/>', <inp2:m_Get name="m_cat_id"/>, $phrases);
+ </script>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="ci_category_element">
<inp2:m_ifnot check="m_Param" name="is_first">
<inp2:m_param name="separator"/>
</inp2:m_ifnot>
<inp2:m_param name="title"/>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_pr_category_label" no_editing="1" is_last="0" editing="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td valign="top" class="field-value">
- <inp2:m_if check="m_Param" name="editing">
- <inp2:{$prefix}_CategoryName />
- <inp2:m_else />
- <inp2:c_CategoryPath separator="&gt;" render_as="ci_category_element"/>
- </inp2:m_if>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+<inp2:m_DefineElement name="inp_pr_category_label" field_type="label" no_editing="1" is_last="0" editing="0">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <inp2:m_if check="m_Param" name="editing">
+ <inp2:{$prefix}_CategoryName />
+ <inp2:m_else />
+ <inp2:c_CategoryPath separator="&gt;" render_as="ci_category_element"/>
+ </inp2:m_if>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.3.x/in-commerce/checkout/shop_cart.tpl
===================================================================
--- branches/1.3.x/in-commerce/checkout/shop_cart.tpl (revision 15664)
+++ branches/1.3.x/in-commerce/checkout/shop_cart.tpl (revision 15665)
@@ -1,325 +1,325 @@
<!--##
<NAME>Shopping cart</NAME>
<DESC>Shopping cart page</DESC>
<SECTION>Platform||Checkout</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_Phrase label="lu_title_ShoppingCart" no_editing="1"/><inp2:m_if check="orditems_TotalRecords"> (<inp2:orditems_TotalRecords/>)</inp2:m_if>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="in-commerce/elements/side_boxes/checkout_steps.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-commerce/elements/side_boxes/recent_products.elm" design="blue_box" data_exists="1"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## /SIDE-BAR ELEMENT ##-->
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_ShoppingCart" templates="in-commerce/checkout/shop_cart"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_title_ShoppingCart"/><inp2:m_if check="orditems_TotalRecords"> (<inp2:orditems_TotalRecords/>)</inp2:m_if>
</inp2:m_Capture>
<form method="post" action="<inp2:m_FormAction />">
<inp2:m_if check="ord_CartHasError">
<table class="warning-message fullwidth">
<tr>
<td width="30">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/warning_icon.gif" width="21" height="18" alt=""/>
</td>
<td>
<inp2:m_phrase name="lu_Warning"/>
</td>
</tr>
</table>
<br />
<inp2:ord_CheckoutError state_changed="lu_comm_msg_state_changed" qty_unavailable="lu_comm_msg_qty_unavailable" outofstock="lu_comm_msg_outofstock"
coupon_applied="lu_comm_CouponApplied"
gift_certificate_applied="lu_comm_GiftCertificateApplied"
invalid_code="lu_comm_invalid_code" code_expired="lu_comm_code_expired"
min_qty="lu_min_qty_error" code_removed="lu_comm_CouponRemoved"
gc_code_removed="lu_comm_GiftCertificateRemoved"
code_removed_automatically="lu_comm_CouponIsNotEffective"
gc_code_removed_automatically="lu_comm_GiftCertificateIsNotEffective"
changed_after_login="lu_comm_CartChangedAfterLogin" /><br /><br />
</inp2:m_if>
<table class="fullwidth">
<inp2:m_DefineElement name="shop_cart_header">
<tr>
<td colspan="5">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<tr class="sub-section-header">
<td><inp2:m_Phrase label="lu_comm_ProductDescription"/></td>
<td width="60"><inp2:m_Phrase label="lu_comm_YourPrice"/></td>
<td width="50"><inp2:m_Phrase label="lu_comm_Qty"/>.</td>
<td width="50"><inp2:m_Phrase label="lu_comm_Total"/></td>
<td width="25">&nbsp;</td>
</tr>
<tr>
<td colspan="5">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_include template="in-commerce/elements/options_blocks.elm"/>
<inp2:m_DefineElement name="shop_cart_item">
<tr>
<td class="shopping-cart-cell-item-padding">
<table>
<tr>
<td class="shopping-cart-icpn-padding-right">
<img src="<inp2:m_TemplatesBase module="In-Commerce"/>img/shopping_cart_item.gif" width="16" height="14" alt="" />
</td>
<td>
<inp2:m_if check="FieldEquals" field="Virtual" value="0">
- <a href="<inp2:ProductLink template="__default__"/>"><inp2:Field name="Name" /></a>
+ <a href="<inp2:ProductLink template="__default__"/>"><inp2:Field name="ProductName" /></a>
<inp2:m_if check="FreePromoShippingAvailable">&nbsp;<sup><inp2:m_phrase label="lu_cart_FreeShippingAvailable" /></sup>
</inp2:m_if>
<inp2:m_else/>
- <inp2:Field name="Name" />
+ <inp2:Field name="ProductName" />
</inp2:m_if>
<inp2:m_if check="ord_BackorderFlag"> <span class="error"><inp2:m_phrase label="lu_cart_BackorderFlag" /></span></inp2:m_if>
<inp2:m_if check="HasOptions">
<br/>
<span style="font-size: 8pt">
<inp2:m_if check="DisplayOptionsPricing">
<inp2:PrintOptions render_as="option_element" currency="selected"/>
<inp2:m_else/>
<inp2:PrintOptions render_as="option_element_no_price" currency="selected"/>
</inp2:m_if>
<inp2:m_if check="FieldEquals" field="OptionsSelectionMode" value="0">
<a href="<inp2:m_link template="__default__" pass="m,p,orditems"/>"><inp2:m_Phrase label="lu_comm_edit_options"/></a>
</inp2:m_if>
</span>
</inp2:m_if>
<inp2:m_if check="p_CustomField" name="Availability">
<br />
<inp2:p_CustomField name="Availability"/>
</inp2:m_if>
<inp2:m_if check="HasDiscount">
<br />
<inp2:m_Phrase label="lu_comm_RegularPrice" />: <inp2:Field name="FlatPrice" currency="selected"/><br />
<inp2:m_Phrase label="lu_comm_Discount" />: <span class="price1"><inp2:Field name="ItemDiscount" currency="selected" negative="1" /></span>
<!--<a href="javascript:showDiscountInfo('<inp2:ord_DiscountHelpLink template="in-commerce/checkout/discount_info" />')">[?]</a>-->
</inp2:m_if>
</td>
</tr>
</table>
</td>
<td class="shopping-cart-cell-item-padding"><strong><inp2:Field name="Price" currency="selected"/></strong></td>
<td class="shopping-cart-cell-item-padding">
<inp2:m_if check="IsTangible">
<inp2:m_if check="m_ModuleEnabled" module="In-Auction">
<inp2:m_if check="ebay-sections_IseBayItem">
<inp2:Field field="Quantity"/>
<inp2:m_else />
<input value="<inp2:Field field="Quantity"/>" style="width:20px" class="input-text" name="<inp2:InputName field="Quantity"/>" />
</inp2:m_if>
<inp2:m_else />
<input value="<inp2:Field field="Quantity"/>" style="width:20px" class="input-text" name="<inp2:InputName field="Quantity"/>" />
</inp2:m_if>
<!--<inp2:m_if check="ProductsInStock">
<inp2:m_Phrase name="lu_of"/> <inp2:ProductsInStock/>
</inp2:m_if>-->
<inp2:m_else />
1
</inp2:m_if>
</td>
<td class="shopping-cart-cell-item-padding"><strong><inp2:Field name="ExtendedPrice" currency="selected"/></strong></td>
<td class="shopping-cart-cell-item-padding" align="center">
<inp2:m_if check="m_ModuleEnabled" module="In-Auction">
<inp2:m_if check="ebay-sections_IseBayItem">
&nbsp;
<inp2:m_else />
<a href="<inp2:LinkRemoveFromCart/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="Delete" alt="Delete" width="8" height="10" border="0" /></a>
</inp2:m_if>
<inp2:m_else />
<a href="<inp2:LinkRemoveFromCart/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="Delete" alt="Delete" width="8" height="10" border="0" /></a>
</inp2:m_if>
</td>
</tr>
<tr>
<td colspan="5">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="shop_cart_footer">
</table>
<table width="100%">
<tr >
<td class="cart-subtotal">
<table width="100%">
<inp2:m_if check="ord_HasDiscount">
<tr>
<td>
<strong><inp2:m_Phrase label="lu_comm_TotalSavings" />:</strong>&nbsp;
</td>
<td>
<span class="price1"><strong><inp2:ord_Field name="DiscountTotal" currency="selected" /></strong></span>
</td>
</tr>
<tr>
<td colspan="2">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="5" alt="" />
</td>
</tr>
</inp2:m_if>
<inp2:m_if check="ord_Field" name="CouponId">
<tr>
<td>
<inp2:m_Phrase label="lu_comm_CouponHasBeenApplied" />:&nbsp;
</td>
<td>
<inp2:ord_Field field="CouponName" />&nbsp;&nbsp;
<a href="<inp2:ord_RemoveCouponLink type="coupon"/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="<inp2:m_Phrase label="lu_comm_RemoveCoupon" no_editing="1"/>" alt="<inp2:m_Phrase label="lu_comm_RemoveCoupon" no_editing="1"/>" width="8" height="10" border="0" /></a>
</td>
</tr>
<inp2:m_else />
<tr>
<td><inp2:m_Phrase label="lu_comm_EnterCouponCode" />:&nbsp;</td>
<td><input size="15" class="input-text" name="coupon_code" /></td>
</tr>
</inp2:m_if>
<tr>
<td colspan="2">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="3" alt="" />
</td>
</tr>
<inp2:m_if check="ord_Field" name="GiftCertificateId">
<tr>
<td><inp2:m_Phrase label="lu_comm_GiftCertificateHasBeenApplied" />:&nbsp;</td>
<td>
<inp2:ord_Field field="GiftCertificateDiscount" currency="selected" />&nbsp;&nbsp;
<a href="<inp2:ord_RemoveCouponLink type="gift_certificate"/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="<inp2:m_Phrase label="lu_comm_RemoveGiftCertificate" no_editing="1"/>" alt="<inp2:m_Phrase label="lu_comm_RemoveGiftCertificate" no_editing="1"/>" width="8" height="10" border="0" /></a>
</td>
</tr>
<inp2:m_else />
<tr>
<td><inp2:m_Phrase label="lu_comm_EnterGiftCertificateCode" />:&nbsp;</td>
<td><input size="15" class="input-text" name="giftcert_code" /></td>
</tr>
</inp2:m_if>
</table>
</td>
<td class="cart-subtotal" align="right">
<span class="cart-subtotal-text"><inp2:m_Phrase label="lu_comm_Subtotal"/>: <inp2:ord_Field field="SubtotalWithDiscount" currency="selected"/></span>
</td>
</tr>
<tr>
<td colspan="2">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="2" alt="" /><br />
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<input type="hidden" name="next_step_template" value="<inp2:m_if check="ord_OrderHasTangibleItems">in-commerce/checkout/shipping<inp2:m_else/>in-commerce/checkout/billing</inp2:m_if>" />
<tr>
<td class="shopping-cart-button-padding">
<input class="button" type="submit" name="events[ord][OnUpdateCart]" value="<inp2:m_Phrase label="lu_comm_UpdateCart" no_editing="1"/>" />
&nbsp;
<input class="button" type="submit" name="events[ord][OnCleanupCart]" onclick="return confirm('<inp2:m_Phrase label="lu_comm_ClearCartConfirmation" />')" value="<inp2:m_Phrase label="lu_comm_CleanupCart" no_editing="1"/>" />
</td>
<td class="shopping-cart-button-padding" align="right">
<input type="hidden" name="continue_shopping_template" value="__default__"/>
<input class="button" type="submit" name="events[ord][OnContinueShopping]" value="<inp2:m_Phrase label="lu_comm_Continue_Shopping" no_editing="1"/>">
&nbsp;
<input class="button" type="submit" name="events[ord][OnCheckout]" value="<inp2:m_Phrase label="lu_comm_ProceedCheckout" no_editing="1"/>" />
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="shop_cart_empty">
<tr>
<td>
<strong><inp2:m_Phrase label="lu_comm_YourCartIsEmpty"/></strong>
</td>
</tr>
</inp2:m_DefineElement>
<script language="JavaScript">
function showDiscountInfo(url)
{
window.open(url, null, 'scrollbars=no,menubar=no,toolbars=no,width=300,height=150');
}
</script>
<inp2:ord_PrintCart item_render_as="shop_cart_item" header_render_as="shop_cart_header" footer_render_as="shop_cart_footer" empty_cart_render_as="shop_cart_empty" per_page="-1"/>
</table>
</form>
<inp2:m_if check="ord_CartNotEmpty">
<inp2:m_if check="ord_HasPaymentGateway" name="Google Checkout">
<inp2:m_DefineElement name="google_checkout_button">
<form method="POST" target="_blank" action="<inp2:ord_GetFormAction payment_type_id="$payment_type_id"/>">
<inp2:ord_GetFormHiddenFields return_template="in-commerce/checkout/checkout_success"
cancel_template="in-commerce/checkout/billing"
payment_type_id="$payment_type_id"/>
<inp2:m_if check="m_Param" name="submit_url" equals_to="https://checkout.google.com/api/checkout/v2">
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="https://checkout.google.com/buttons/checkout.gif?merchant_id=<inp2:m_Param name="merchant_id"/>
&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180">
<inp2:m_else/>
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=<inp2:m_Param name="merchant_id"/>
&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180">
</inp2:m_if>
</form>
</inp2:m_DefineElement>
<inp2:ord_DisplayPaymentGateway name="Google Checkout" render_as="google_checkout_button"/>
</inp2:m_if>
</inp2:m_if>
</inp2:m_RenderElement>
</div>
<div class="movable-element">
<inp2:m_if check="ord_CartIsEmpty">
<inp2:m_include template="in-commerce/elements/content_boxes/pick_products.elm"/>
</inp2:m_if>
</div>
</div>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
<!--## /DESIGN TEMPLATE ##-->
Index: branches/1.3.x/in-commerce/elements/forms.elm.tpl
===================================================================
--- branches/1.3.x/in-commerce/elements/forms.elm.tpl (revision 15664)
+++ branches/1.3.x/in-commerce/elements/forms.elm.tpl (revision 15665)
@@ -1,56 +1,47 @@
<inp2:m_DefineElement name="affiliate_payment_type_element">
<tr>
<td valign="top" nowrap>
<input type="radio" name="<inp2:$prefix_InputName name='$field'/>" id="<inp2:$prefix_InputName name='$field'/>_<inp2:Field name='PaymentTypeId'/>" value="<inp2:Field name='PaymentTypeId'/>"<inp2:m_if check="Checked" prefix="$prefix" field="$field"> checked</inp2:m_if>/>
</td>
<td>
<label for="<inp2:$prefix_InputName name='$field'/>_<inp2:Field name='PaymentTypeId'/>">
<inp2:Field name="Name" />
<inp2:m_if check="Field" name="Description">
<br /><inp2:Field name="Description" />
</inp2:m_if>
</label>
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_affiliate_payment_types" is_last="0" required="0">
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
- <td class="field-value">
- <inp2:m_if check="{$prefix}_HasError" field="$field">
- <span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
- </inp2:m_if>
-
- <table>
- <inp2:apt_PrintList render_as="affiliate_payment_type_element" prefix="$prefix" field="$field"/>
- </table>
- </td>
- </tr>
-
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <table>
+ <inp2:apt_PrintList render_as="affiliate_payment_type_element" prefix="$prefix" field="$field"/>
+ </table>
+ </inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_affiliate_terms_checkbox" title="" is_last="0">
<tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
<td class="field-name" nowrap>&nbsp;</td>
<td>
<inp2:m_if check="{$prefix}_HasError" field="$field">
<span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
</inp2:m_if>
<input tabindex="<inp2:m_get param='tab_index'/>" type="checkbox" id="<inp2:{$prefix}_InputName field='$field'/>" name="<inp2:{$prefix}_InputName field='$field'/>" <inp2:{$prefix}_Field field="$field" checked="checked" db="db"/> value="1"/>
<label for="<inp2:$prefix_InputName field='$field'/>"><inp2:m_Phrase label="lu_comm_IAgreeTo" /></label>
<a href="javascript:showAffiliateAgreement()"><inp2:m_Phrase label="lu_comm_AffiliateAgreement" /></a>
<label for="<inp2:$prefix_InputName field='$field'/>"><inp2:m_Phrase label="lu_comm_TermsAndConditions" /></label>
</td>
</tr>
<script type="text/javascript">
function showAffiliateAgreement() {
window.open('<inp2:m_Link template="in-commerce/my_account/affiliate/affiliate_agreement" />', null, 'menubar=no,toolbars=no,width=500,height=300');
}
</script>
</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.3.x/in-commerce/elements/content_boxes/checkout/billing_options.elm.tpl
===================================================================
--- branches/1.3.x/in-commerce/elements/content_boxes/checkout/billing_options.elm.tpl (revision 15664)
+++ branches/1.3.x/in-commerce/elements/content_boxes/checkout/billing_options.elm.tpl (revision 15665)
@@ -1,227 +1,214 @@
<inp2:m_DefineElement name="order_payment_credit_card">
<table width="100%" class="block-no-border">
<tr class="cart-header">
<td>
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
<div class="sub-section-header"><inp2:ord_PaymentTypeDescription/></div>
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
<br />
</td>
</tr>
<tr class="block-data">
<td>
<inp2:m_if check="ord_HasGatewayError">
<inp2:m_RenderElement name="error_message" />
<strong><inp2:ord_ShowGatewayError/></strong>
</inp2:m_if>
<br />
<strong><inp2:ord_PaymentTypeInstructions/></strong>
<br /><br />
</td>
</tr>
</table>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br />
<table class="form-data fullwidth">
<inp2:m_RenderElement name="inp_edit_options" prefix="ord" field="PaymentCardType" title="lu_billing_CardType"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="PaymentAccount" title="lu_billing_CreditCardNumber" style="width: 200px;"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="PaymentNameOnCard" title="lu_billing_NameOnCard" style="width: 260px;"/>
<!-- credit card expiration -->
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="ord" field="PaymentCCExpDate" title="lu_billing_CardExpiration"/>
- <td class="field-value">
- <inp2:m_if check="ord_HasError" field="PaymentCCExpDate">
- <span class="field-error"><inp2:ord_Error field="PaymentCCExpDate"/></span><br />
- </inp2:m_if>
- <select class="input-select" name="<inp2:ord_InputName field="PaymentCCExpMonth"/>">
- <inp2:ord_PredefinedOptions field="PaymentCCExpMonth" render_as="inp_option_item" selected="selected"/>
- </select>
- /
- <select class="input-select" name="<inp2:ord_InputName field="PaymentCCExpYear"/>">
- <option value=''></option>
- <inp2:ord_PrintYearOptions field="PaymentCCExpYear" render_as="inp_option_item" selected="selected"/>
- </select>
- </td>
- </tr>
- <inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
+ <inp2:m_RenderElement design="form_row" prefix="ord" field="PaymentCCExpDate" title="lu_billing_CardExpiration" field_type="cc_expiration">
+ <select class="input-select" name="<inp2:ord_InputName field='PaymentCCExpMonth'/>">
+ <inp2:ord_PredefinedOptions field="PaymentCCExpMonth" render_as="inp_option_item" selected="selected"/>
+ </select>
+ /
+ <select class="input-select" name="<inp2:ord_InputName field='PaymentCCExpYear'/>">
+ <option value=''></option>
+ <inp2:ord_PrintYearOptions field="PaymentCCExpYear" render_as="inp_option_item" selected="selected"/>
+ </select>
+ </inp2:m_RenderElement>
<!-- // credit card expiration -->
<!-- credit card CVV2 -->
- <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
- <inp2:m_RenderElement name="inp_edit_field_caption" prefix="ord" field="PaymentCVV2" title="lu_billing_CVV2"/>
- <td class="field-value">
- <inp2:m_if check="ord_HasError" field="PaymentCVV2">
- <span class="field-error"><inp2:ord_Error field="PaymentCVV2"/></span><br />
- </inp2:m_if>
- <input type="text" class="input-text" name="<inp2:ord_InputName field="PaymentCVV2"/>" value="<inp2:ord_Field field="PaymentCVV2"/>" tabindex="<inp2:m_get param="tab_index"/>" style="width: 50px;">
- &nbsp;&nbsp;<a href="javascript:showCVV2Help()"><inp2:m_Phrase label="lu_WhatIsThis" /></a>
- </td>
- </tr>
+ <inp2:m_RenderElement design="form_row" prefix="ord" field="PaymentCVV2" title="lu_billing_CVV2">
+ <input type="text" class="input-text" name="<inp2:ord_InputName field='PaymentCVV2'/>" value="<inp2:ord_Field field='PaymentCVV2'/>" tabindex="<inp2:m_get param='tab_index'/>" style="width: 50px;">
+ &nbsp;&nbsp;<a href="javascript:showCVV2Help()"><inp2:m_Phrase label="lu_WhatIsThis" /></a>
+ </inp2:m_RenderElement>
<!-- // credit card CVV2 -->
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="check_credit_card" id="check_credit_card" value="0"/>
<input type="hidden" name="preview_template" value="in-commerce/checkout/preview">
<input class="button" type="submit" name="events[ord][OnProceedToPreview]" value="<inp2:m_Phrase label='lu_btn_ProceedToPreview' no_editing='1'/>">
<script type="text/javascript">
var $submit_event = '';
$(document).ready(
function () {
// mark all submit buttons on form ("Update Address" & "Proceed to preview")
$("input[type='submit']", '#billing_info').each(
function () {
var $me = $(this);
if ( $me.attr('name').match(/^events\[ord\]\[(.*)\]$/) ) {
$me
.attr('event_name', RegExp.$1)
.click(
function ($e) {
$submit_event = $(this).attr('event_name');
}
);
}
}
);
$('#billing_info').submit(
function ($e) {
$('#check_credit_card').val($submit_event == 'OnProceedToPreview' ? 1 : 0);
}
);
}
)
</script>
</inp2:m_RenderElement>
</table>
<br />
<script language="JavaScript">
function showCVV2Help(){
window.open('<inp2:m_Link template="in-commerce/checkout/cvv2help" />', null, 'scrollbars=no,menubar=no,toolbars=no,width=300,height=150');
}
</script>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_payment_type_default">
<table>
<tr class="cart-header">
<td>
<inp2:ord_PaymentTypeDescription/>
</td>
</tr>
<tr class="form-data">
<td>
<inp2:m_if check="ord_HasGatewayError">
<table class="warning">
<tr>
<td valign="top" align="left" class="block-data">
<img src="img/message.gif" alt="" width="19" height="19" />
<span class="warning-text"><inp2:m_Phrase label="lu_Warning"/></span><br />
<inp2:ord_ShowGatewayError/>
</td>
</tr>
</table>
</inp2:m_if>
<br/>
<inp2:ord_PaymentTypeInstructions/>
</td>
</tr>
</table>
<br/>
<input type="hidden" name="preview_template" value="in-commerce/checkout/preview">
<input class="button" type="submit" name="events[ord][OnProceedToPreview]" value="<inp2:m_Phrase label="lu_btn_ProceedToPreview" no_editing="1"/>">
</inp2:m_DefineElement>
<inp2:m_DefineElement name="products_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_ProductsTotal"/>:</strong></td>
<td><inp2:ord_Field name="SubTotal" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="shipping_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_ShippingCost"/> (<inp2:ord_ShippingType />):</strong></td>
<td><inp2:ord_Field name="ShippingCost" currency="selected"/></td>
</tr>
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_Insurance_Fee"/>:</strong></td>
<td><inp2:ord_Field name="InsuranceFee" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="processing_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_ProcessingFee"/>: </strong></td>
<td><inp2:ord_Field name="ProcessingFee" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sub_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_SubTotal"/>: </strong></td>
<td><inp2:ord_Field name="AmountWithoutVAT" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="vat_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_VAT"/> <inp2:ord_Field name="VATPercent"/>%: </strong></td>
<td><inp2:ord_Field name="VAT" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_comm_BillingOptions"/>
</inp2:m_Capture>
<inp2:m_RenderElement name="subsection" title="lu_section_CostSummary"/>
<table class="order-totals">
<inp2:ord_PrintTotals
products_render_as="products_total"
shipping_render_as="shipping_total"
processing_render_as="processing_total"
sub_total_render_as="sub_total"
vat_render_as="vat_total"/>
<inp2:m_if check="ord_Field" name="GiftCertificateId">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_Gift_Certificate"/>: </strong></td>
<td><inp2:ord_Field name="GiftCertificateDiscount" currency="selected"/></td>
</tr>
</inp2:m_if>
<tr class="order-grand-total">
<td><inp2:m_Phrase label="lu_comm_GrandTotal"/>:</td>
<td><span class="price1"><inp2:ord_Field name="TotalAmount" currency="selected"/></span></td>
</tr>
</table>
<br />
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" alt="" /><br /><br />
<br />
<br />
<strong><inp2:m_Phrase label="lu_comm_PaymentType"/>:</strong>
<select class="input-select" name="<inp2:ord_InputName field="PaymentType"/>" onchange="document.getElementById('events[ord][OnUpdate]').click();">
<inp2:ord_PredefinedOptions render_as="inp_option_item" field="PaymentType" selected="selected"/>
</select>
&nbsp;<input class="button" type="submit" value="<inp2:m_Phrase label="lu_btn_Select" no_editing="1"/>" name="events[ord][OnUpdate]" id="events[ord][OnUpdate]">
<br/><br/>
<inp2:ord_PaymentTypeForm cc_render_as="order_payment_credit_card" default_render_as="order_payment_type_default"/>
</inp2:m_RenderElement>
\ No newline at end of file
Index: branches/1.3.x
===================================================================
--- branches/1.3.x (revision 15664)
+++ branches/1.3.x (revision 15665)
Property changes on: branches/1.3.x
___________________________________________________________________
Modified: svn:mergeinfo
## -0,0 +0,2 ##
Merged /themes/advanced/branches/1.2.x:r15475-15622
Merged /themes/advanced/releases/1.2.1-B1:r15623-15664

Event Timeline