Added: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl?rev=589315&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl (added) +++ ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl Sun Oct 28 02:41:52 2007 @@ -0,0 +1,29 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<script language="JavaScript" type="text/javascript"> + function exportToGoogle() { + document.products.action="<@ofbizUrl>ProductsExportToGoogle</@ofbizUrl>"; + document.products.submit(); + } +</script> + +<#if productIds?has_content> + <a href="javascript:exportToGoogle();" class="buttontext">${uiLabelMap.ProductExportToGoogle}</a> +</#if> Propchange: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/find/googleExportLink.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp?rev=589315&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp (added) +++ ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp Sun Oct 28 02:41:52 2007 @@ -0,0 +1,19 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%response.sendRedirect("control/main");%> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/index.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml?rev=589315&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml (added) +++ ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml Sun Oct 28 02:41:52 2007 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> + <form name="ProductsExportToGoogle" type="single" target="searchExportProductListToGoogle"> + <field name="selectResult"><hidden/></field> + <field name="webSiteUrl"><text size="50" maxlength="250"/></field> + <field name="actionType" widget-style="selectBox"> + <drop-down no-current-selected-key="insert"> + <option key="insert" description="${uiLabelMap.CommonInsert}"/> + <option key="update" description="${uiLabelMap.CommonUpdate}"/> + <option key="delete" description="${uiLabelMap.CommonDelete}"/> + </drop-down> + </field> + <field name="statusId"> + <drop-down no-current-selected-key="draft"> + <!-- + <option key="deactivate" description="${uiLabelMap.GoogleBaseExportDeactivated}"/> + --> + <option key="draft" description="${uiLabelMap.GoogleBaseExportPublishDraft}"/> + <option key="publish" description="${uiLabelMap.GoogleBaseExportPublish}"/> + </drop-down> + </field> + <field name="testMode" tooltip="${uiLabelMap.GoogleBaseExportTestMode}"> + <drop-down no-current-selected-key="N"> + <option key="N" description="${uiLabelMap.CommonNo}"/> + <option key="Y" description="${uiLabelMap.CommonYes}"/> + </drop-down> + </field> + <field name="trackingCodeId"> + <drop-down no-current-selected-key="_NA_"> + <option key="_NA_" description="${uiLabelMap.GoogleBaseExportNoTrackingRequested}"/> + <entity-options entity-name="TrackingCode" description="${description}"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" title="${uiLabelMap.ProductExportToGoogle}"><submit button-type="button"/></field> + </form> +</forms> Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml?rev=589315&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml (added) +++ ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml Sun Oct 28 02:41:52 2007 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd"> + <menu name="GoogleBaseAppBar" default-menu-item-name="main" id="app-navigation" type="simple" title="${uiLabelMap.GoogleBaseApplication}" + default-selected-style="selected" selected-menuitem-context-field-name="headerItem"> + <menu-item name="googlebase" title="${uiLabelMap.ProductExportToGoogle}"><link target="advancedsearch"/></menu-item> + + <menu-item name="Logout" title="Logout" align-style="col-right" selected-style="selected"> + <condition><not><if-empty field-name="userLogin"/></not></condition> + <link target="logout"/> + </menu-item> + <menu-item name="Login" title="Login" align-style="col-right" selected-style="selected"> + <condition><if-empty field-name="userLogin"/></condition> + <link target="${checkLoginUrl}"/> + </menu-item> + </menu> +</menus> Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml?rev=589315&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml (added) +++ ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml Sun Oct 28 02:41:52 2007 @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> + + <screen name="main-decorator"> + <section> + <actions> + <property-map resource="GoogleBaseUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/> + <set field="activeApp" value="googlebase" global="true"/> + + <!-- The two default (global) stylesheets are added to the list + of stylesheets to the first and second position --> + <set field="layoutSettings.styleSheets[+0]" value="/images/maincss.css" global="true"/> + <!-- The default (global) java scripts --> + <set field="layoutSettings.javaScripts[]" value="/images/calendar1.js" global="true"/> + <set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/> + <set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true"/> + + <set field="layoutSettings.companyName" from-field="uiLabelMap.GoogleBaseCompanyName" global="true"/> + <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.GoogleBaseApplication" global="true"/> + <set field="applicationMenuName" value="GoogleBaseAppBar" global="true"/> + <set field="applicationMenuLocation" value="component://googlebase/widget/GoogleBaseMenus.xml" global="true"/> + </actions> + <widgets> + <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/> + </widgets> + </section> + </screen> + + <screen name="CommonFindDecorator"> + <section> + <actions> + <set field="headerItem" value="googlebase"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section> + <!-- do check for CATALOG, _VIEW permission --> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <decorator-section-include name="body"/> + </widgets> + <fail-widgets> + <label style="head3">${uiLabelMap.ProductCatalogViewPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="advancedsearch"> + <section> + <actions> + <set field="titleProperty" value="PageTitleAdvancedSearch"/> + + <entity-condition entity-name="ProductCategory" list-name="productCategories"> + <condition-expr field-name="showInSelect" operator="not-equals" value="N"/> + <order-by field-name="description"/> + </entity-condition> + <entity-condition entity-name="ProdCatalog" list-name="prodCatalogs"> + <order-by field-name="catalogName"/> + </entity-condition> + <script location="component://product/webapp/catalog/WEB-INF/actions/find/advancedsearchoptions.bsh"/> + </actions> + <widgets> + <decorator-screen name="CommonFindDecorator"> + <decorator-section name="body"> + <platform-specific> + <html><html-template location="component://product/webapp/catalog/find/advancedsearch.ftl"/></html> + </platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="keywordsearch"> + <section> + <actions> + <set field="titleProperty" value="PageTitleSearchResults"/> + <script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.bsh"/> + </actions> + <widgets> + <decorator-screen name="CommonFindDecorator"> + <decorator-section name="body"> + <platform-specific> + <html><html-template location="component://product/webapp/catalog/find/keywordsearch.ftl"/></html> + </platform-specific> + <platform-specific> + <html><html-template location="component://googlebase/webapp/googlebase/find/googleExportLink.ftl"/></html> + </platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ProductsExportToGoogle"> + <section> + <actions> + <set field="headerItem" value="googlebase"/> + <set field="titleProperty" value="PageTitleGoogleBaseProductsExportToGoogle"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <label style="head1">${uiLabelMap.PageTitleGoogleBaseProductsExportToGoogle}</label> + </container> + <include-form name="ProductsExportToGoogle" location="component://googlebase/widget/GoogleBaseForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |