[pLog-svn] r1977 - in plog/branches/plog-1.0.1: styles templates/summary

reto at devel.plogworld.net reto at devel.plogworld.net
Mon May 9 19:39:10 GMT 2005


Author: reto
Date: 2005-05-09 19:39:09 +0000 (Mon, 09 May 2005)
New Revision: 1977

Modified:
   plog/branches/plog-1.0.1/styles/summary.css
   plog/branches/plog-1.0.1/templates/summary/registerstep3.template
Log:
fixed issue 357 (smaller template screens with popup for full sized image)

Modified: plog/branches/plog-1.0.1/styles/summary.css
===================================================================
--- plog/branches/plog-1.0.1/styles/summary.css	2005-05-09 19:35:11 UTC (rev 1976)
+++ plog/branches/plog-1.0.1/styles/summary.css	2005-05-09 19:39:09 UTC (rev 1977)
@@ -784,4 +784,9 @@
 #FormError
 {
  padding-bottom: 11px;
-} 
\ No newline at end of file
+}
+
+div.templateScreen {
+  float: left;
+  margin: 5px 15px 15px 0px;
+}
\ No newline at end of file

Modified: plog/branches/plog-1.0.1/templates/summary/registerstep3.template
===================================================================
--- plog/branches/plog-1.0.1/templates/summary/registerstep3.template	2005-05-09 19:35:11 UTC (rev 1976)
+++ plog/branches/plog-1.0.1/templates/summary/registerstep3.template	2005-05-09 19:39:09 UTC (rev 1977)
@@ -1,4 +1,13 @@
 {include file="summary/header.template" section=$locale->tr("register_step3_title")}
+
+{literal}
+<script language="JavaScript" type="text/JavaScript">
+function openWindow(URL,windowtitle,params) { 
+  window.open(URL,windowtitle,params);
+}
+</script>
+{/literal}
+
  <form name="templateChooser" method="post">
   <fieldset class="inputField">
    <legend>{$locale->tr("step3")}</legend>
@@ -8,10 +17,12 @@
     {include file="summary/validate.template" field=templateId message=$locale->tr("error_must_choose_template")}	
     {foreach from=$templates item=template}
      {assign var=templateName value=$template->getName()}
-     <img src="{$template->getScreenshotUrl()}" alt="{$templateName}" height="300" width="400" /><br/>
+     <div class="templateScreen">
+     <a href="javascript:openWindow('{$template->getScreenshotUrl()}','Screenshot','scrollbars=yes,resizable=yes,width=400,height=300');"><img src="{$template->getScreenshotUrl()}" alt="{$templateName}" height="150" width="200" /></a><br/>
      <input type="radio" class="checkbox" value="{$template->getName()}" name="templateId" id="templateId" />
      <label for="templateId"><strong>{$templateName}</strong></label>
      <br/><br/>
+     </div>
     {/foreach}
    </div>
   </fieldset>  




More information about the pLog-svn mailing list