summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 992205c)
raw | patch | inline | side by side (parent: 992205c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 23 Jun 2005 13:02:36 +0000 (13:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 23 Jun 2005 13:02:36 +0000 (13:02 +0000) |
plugins/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history |
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index b131b2b98073baf90ec4af893a31164d9a7877e7..dd7c7677729042962273b84e64a8e8eb1677357b 100644 (file)
$str="<select name='".$var."' ".chkacl($this->acl, "goFonMacro").">";
if($choosen){
- $str.="<option name='".$var."' value='0'>"._("false")."</option>";
- $str.="<option name='".$var."' value='1' selected>"._("true")."</option>";
+ $str.="\n<option name='".$var."' value='0'>"._("false")."</option>";
+ $str.="\n<option name='".$var."' value='1' selected>"._("true")."</option>";
}else{
- $str.="<option name='".$var."' value='0' selected>"._("false")."</option>";
- $str.="<option name='".$var."' value='1'>"._("true")."</option>";
+ $str.="\n<option name='".$var."' value='0' selected>"._("false")."</option>";
+ $str.="\n<option name='".$var."' value='1'>"._("true")."</option>";
}
$str.="<select name='".$var."'>";
}
}
$smarty->assign("forwarder_list", $forwarder_list);
-
-
- /* Check box * /
- if ($this->parent->by_object['mailAccount'] &&
- $this->parent->by_object['mailAccount']->is_account &&
- preg_match("/M/i", $this->goFonDeliveryMode)){
- $smarty->assign("fon_to_mail", "checked");
- } else {
- $smarty->assign("fon_to_mail", "");
- }
-
-
- if (!isset($this->parent->by_object['mailAccount'])) {
- $smarty->assign("has_mailaccount", "false");
- $this->has_mailAccount= false;
- } elseif ( !$this->parent->by_object['mailAccount']->is_account){
- $smarty->assign("has_mailaccount", "false");
- $this->has_mailAccount= false;
- } else {
- $smarty->assign("has_mailaccount", "true");
- }
- */
/* Show main page */
$display.= $smarty->fetch(get_template_path('generic.tpl', TRUE, dirname(__FILE__)));
return($display);
}
}
-
- /* Check if mail account is active and correct the internal
- reference to represent the current status. * /
- if ($this->parent->by_object['mailAccount']->is_account){
- $this->has_mailAccount= TRUE;
- }
- */
/* Every macro in the select box are available */
if((isset($_POST['macro']))){
$this->macrostillavailable=true;
{
plugin::save();
- /* goFonAccount has "mail" as must! Block if no mailaddress is specified... * /
- if (isset($this->parent->by_object['mailAccount']) &&
- !$this->parent->by_object['mailAccount']->is_account) {
-
- $this->goFonDeliveryMode= preg_replace("/M/i", "", $this->goFonDeliveryMode);
- }
- */
/* Save arrays */
$this->attrs['telephoneNumber']= array();
foreach ($this->phoneNumbers as $number){