summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f475c3)
raw | patch | inline | side by side (parent: 0f475c3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jul 2010 14:27:08 +0000 (14:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jul 2010 14:27:08 +0000 (14:27 +0000) |
-Made input fields compatible with utf-8 encoded strings.
-Fixed design, some fields wern't of type 'text'
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18981 594d385d-05f5-0310-b6e9-bd551577e9d8
-Fixed design, some fields wern't of type 'text'
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18981 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc
index b98c6a036490be4e0c6bdcd7bcb4988009da3af1..f6679d4913c23878f0f4205a60a25d93dc60bdad 100644 (file)
}
/* Fill templating stuff */
- $smarty->assign("cn", $this->cn);
+ $smarty->assign("cn", set_post($this->cn));
if(!$this->is_release()){
$smarty->assign("bases", $this->get_allowed_bases());
}else{
/* Variables */
foreach(array("description", "gosaApplicationExecute", "gosaApplicationName","cn") as $val){
- $smarty->assign($val, $this->$val);
+ $smarty->assign($val, set_post($this->$val));
}
/* Checkboxes */
}
$smarty->assign("isReleaseApplikation" ,$this->is_release());
- $smarty->assign("gotoLogonScript",htmlentities($this->gotoLogonScript, ENT_COMPAT, 'UTF-8'));
+ $smarty->assign("gotoLogonScript",set_post($this->gotoLogonScript));
$smarty->assign("base_select", $this->base);
/* Show main page */
return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
function saveCopyDialog()
{
if(isset($_POST['cn'])){
- $this->cn = $_POST['cn'];
+ $this->cn = set_post($_POST['cn']);
}
}
diff --git a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc
index db49a00258ef6324e66075b4713e60852f506a4d..72ab48f878a10e7e965bce05972aab611a6f1720 100644 (file)
$table.="<tr>".
" <td>".
- " <input name=\"option$i\" size=25 maxlength=50 value=\"".$name."\" ".$tag.">".
+ " <input type='text' name=\"option$i\" size=25 maxlength=50 value=\"".set_post($name)."\" ".$tag.">".
" </td>".
" <td>".
- " <input name=\"value$i\" size=60 maxlength=250 value=\"".$value."\" ".$tag.">".
+ " <input type='text' name=\"value$i\" size=60 maxlength=250 value=\"".set_post($value)."\" ".$tag.">".
" <br>".
" </td>".
" <td>".
- " <input type=\"submit\" name=\"remove$i\" value=\""._("Remove")."\" ".$tag.">".
+ " <button type=\"submit\" name=\"remove$i\" ".$tag.">".msgPool::delButton()."</button>".
" </td>".
"</tr>";
}
}
$table.= "</table>";
- $table.="<input type=\"submit\" name=\"add_option\" $tag value=\""._("Add option")."\">";
+ $table.="<button type=\"submit\" name=\"add_option\" $tag >"._("Add option")."</button>";
/* Show main page */
$smarty= get_smarty();
{
if (isset($_POST['option0']) && $this->acl_is_writeable("gosaApplicationParameter")){
for ($i= 0; $i<count($this->option_name); $i++){
- $this->option_name[$i]= $_POST["option$i"];
+ $this->option_name[$i]= get_post("option$i");
$this->option_value[$i]= "";
if ($_POST["value$i"] != ""){
- $this->option_value[$i]= $_POST["value$i"];
+ $this->option_value[$i]= get_post("value$i");
}
}
}
diff --git a/gosa-plugins/goto/admin/applications/generic.tpl b/gosa-plugins/goto/admin/applications/generic.tpl
index 3c84c9289c844c8ea0c5edb7177f901ed7cca386..07cd5e14d46c27e23ae4fa124abf96e7807d7d50 100644 (file)
<td><LABEL for="cn">{t}Application name{/t}{$must}</LABEL></td>
<td>
{render acl=$cnACL}
- <input type='text' id="cn" name="cn" size=25 maxlength=60 value="{$cn}" title="{t}Application name{/t}">
+ <input type='text' id="cn" name="cn" value="{$cn}" title="{t}Application name{/t}">
{/render}
</td>
</tr>
<td><LABEL for="gosaApplicationName">{t}Display name{/t}</LABEL></td>
<td>
{render acl=$gosaApplicationNameACL}
- <input id="gosaApplicationName" name="gosaApplicationName" size=35 maxlength=60
+ <input id="gosaApplicationName" name="gosaApplicationName" type="text"
value="{$gosaApplicationName}" title="{t}Application name to be displayed (i.e. below icons){/t}">
{/render}
</td>
<td><LABEL for="gosaApplicationExecute">{t}Execute{/t}{$must}</LABEL></td>
<td>
{render acl=$gosaApplicationExecuteACL}
- <input id="gosaApplicationExecute" name="gosaApplicationExecute" size=35 maxlength=120
+ <input id="gosaApplicationExecute" name="gosaApplicationExecute" type="text"
value="{$gosaApplicationExecute}" title="{t}Path and/or binary name of application{/t}">
{/render}
</td>
<td><LABEL for="description">{t}Description{/t}</LABEL></td>
<td>
{render acl=$descriptionACL}
- <input type='text' id="description" name="description" size=35 maxlength=80 value="{$description}">
+ <input type='text' id="description" name="description" value="{$description}">
{/render}
</td>
</tr>