summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7048e94)
raw | patch | inline | side by side (parent: 7048e94)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Mar 2006 04:30:26 +0000 (04:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Mar 2006 04:30:26 +0000 (04:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2881 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history | |
plugins/gofon/phoneaccount/paste_generic.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 78acac30385ef39d73ad7967a731d0d3f06aca21..85270ffa99c1409f52b79c3d22d5da15bba8de8f 100644 (file)
}
}
- function getSaveDialog()
+ function getCopyDialog()
{
-
- return("Phone");
+ $smarty = get_smarty();
+ if (!count($this->phoneNumbers)){
+ $smarty->assign ("phoneNumbers", array(""));
+ } else {
+ $smarty->assign ("phoneNumbers", $this->phoneNumbers);
+ }
+
+ $smarty->assign("goFonVoicemailPIN",$this->goFonVoicemailPIN);
+ $smarty->assign("goFonPIN",$this->goFonPIN);
+
+ $display= $smarty->fetch(get_template_path('paste_generic.tpl', TRUE, dirname(__FILE__)));
+ return($display);
}
}
diff --git a/plugins/gofon/phoneaccount/paste_generic.tpl b/plugins/gofon/phoneaccount/paste_generic.tpl
--- /dev/null
@@ -0,0 +1,56 @@
+<h2>{t}Phone settings{/t}</h2>
+<table summary="{t}Phone numbers{/t}" style="width:100%">
+ <tr>
+ <td style="vertical-align:top; border-right:1px solid #A0A0A0; width:50%">
+ <h2>
+ <img class="center" alt="" align="middle" src="images/banana.png" /> {t}Phone numbers{/t}
+ </h2>
+ <select style="width:100%;" name="phonenumber_list[]" size=7 multiple>
+ {html_options options=$phoneNumbers}
+ <option disabled> </option>
+ </select>
+ <br>
+ <input name="phonenumber" size=20 align=middle maxlength=60 value="">
+ <input type="submit" value="{t}Add{/t}" name="add_phonenumber">
+ <input type="submit" value="{t}Delete{/t}" name="delete_phonenumber">
+ </td>
+ <td style="vertical-align:top; width:50%;">
+ <table summary="" style="width:100%" border=0>
+ <tr>
+ <td style="vertical-align:top;">
+ <h2>
+ <img class="center" alt="" align="middle" src="images/hardware.png" />
+ {t}Telephone hardware{/t}
+ </h2>
+ <table summary="{t}Telephone{/t}" border=0>
+ <tr>
+ <td>
+ <label for="goFonVoicemailPIN">{t}Voicemail PIN{/t}{$must}</label>
+ </td>
+ <td>
+ <input type="password" id="goFonVoicemailPIN" name="goFonVoicemailPI" value="{$goFonVoicemailPIN}">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <label for="goFonPIN">{t}Phone PIN{/t}{$must}</label>
+ </td>
+ <td>
+ <input type="password" id="goFonPIN" name="goFonPIN" value="{$goFonPIN}">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<input type="hidden" name="phoneTab" value="phoneTab">
+
+
+<script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ document.mainform.phonenumber.focus();
+ -->
+</script>