summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4187971)
raw | patch | inline | side by side (parent: 4187971)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 31 Oct 2005 07:22:02 +0000 (07:22 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 31 Oct 2005 07:22:02 +0000 (07:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1761 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printerPPDDialog.inc | patch | blob | history | |
plugins/admin/systems/printerPPDDialog.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc
index 6c0f3bd4e6709e5e85be0b6be22f402e18d3e66d..ed31bb2629de315194c8320a2bf2e8f1ba8ac02e 100644 (file)
/* Give smarty the information it needs */
$smarty->assign("ppdString" ,$this->getPPDInformation());
- $smarty->assign("properties",$this->generateProperties());
+ $tmp= $this->generateProperties();
+ if ($tmp == ""){
+ $smarty->assign("showOptions", 0);
+ } else {
+ $smarty->assign("showOptions", 1);
+ $smarty->assign("properties",$this->generateProperties());
+ }
/* Print out template */
$display.= $smarty->fetch(get_template_path('printerPPDDialog.tpl', TRUE,dirname(__FILE__)));
/* Set Headline */
$str = "";
+ $feed= "";
/* If ppd exists and is readable */
if((!empty($this->selectedPPD['link']))&&(file_exists($this->selectedPPD['link']))){
foreach($this->ppdConfig as $cat => $obj){
/* Add new category */
- $str .= "<tr><td colspan='2'><br>";
- $str .= "<b>".$cat." : </b><br>";
+ $str .= "<tr><td colspan='2'>$feed";
+ if ($feed == ""){
+ $feed= "<br>";
+ }
+ $str .= "<b>"._("Section")." '".$cat."' </b><br>";
$str .= "</tr></td>";
/* Add attributes of the current category */
diff --git a/plugins/admin/systems/printerPPDDialog.tpl b/plugins/admin/systems/printerPPDDialog.tpl
index da21f72a6552ad577c33dca34b50cee0e5e509a8..34579eeaabc5a31161184e60064c8d910ad2056f 100644 (file)
+<h2><img src="images/select_printer.png" align="middle"> {t}Printer driver{/t}</h2>
<table summary="" width="100%">
<tr>
- <td width="50%">
- <h2><img src="images/house.png"> {t}Printer driver information file setup{/t}</h2>
- {t}Current used information setup{/t} :
- {$ppdString}<br>
+ <td width="50%" style="vertical-align:top">
+ {t}Model{/t}: <i>{$ppdString}</i>
<input type="submit" name="SelectPPD" value="{t}Select{/t}">
</td>
<td style="border-left: 1px solid rgb(160, 160, 160);padding-left:10px;">
- <h2><img src="images/house.png" alt=""> {t}Upload new PPD file{/t} :</h2>
+ {t}New driver{/t}
<input type="file" value="" name="NewPPDFile">
<input type="submit" name="SubmitNewPPDFile" value="{t}Upload{/t}">
</td>
</tr>
</table>
+{if $showOptions eq 1}
<p class="seperator"> </p>
-<br>
-<h2><img src="images/house.png"> {t}Options{/t}</h2>
+<h2><img src="images/lamp.png" align="middle"> {t}Options{/t}</h2>
{$properties}
+{/if}
<p class="plugbottom">
<input type="hidden" name="PPDDisSubmitted" value="1">
<input type="submit" name="SavePPD" value="{t}Apply{/t}">