summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ebe8e21)
raw | patch | inline | side by side (parent: ebe8e21)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 06:50:53 +0000 (06:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 06:50:53 +0000 (06:50 +0000) |
-Not working
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9272 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9272 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_notify.tpl | patch | blob | history | |
gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_notify.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_notify.tpl b/gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_notify.tpl
index 4e3fc127d969422457a48dc11387dc7298378bbb..25a8618ef20ca3e31facdd2b9b2aaeff652ef47a 100644 (file)
<table style='width:100%;'>
<tr>
- <td style='width:50%; vertical-align:top;'>
- <table>
- <tr>
- <td style='vertical-align:top'>{t}Timestamp{/t}</td>
- <td>{$timestamp}</td>
- </tr>
- </table>
+ <td style='vertical-align:top'>{t}Send on:{/t}</td>
+ <td>{$timestamp}</td>
+ </tr>
+ <tr>
+ <td>
+ {t}Subject{/t}
</td>
- <td style='width:50%; vertical-align:top;'>
- <table style='width:100%;'>
- <tr>
- <td>
- {t}Target objects{/t}
- <br>
- {$target_list}
- </td>
- </tr>
- </table>
+ <td>
+ <input type="text" value="{$subject}" name="subject">
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ {t}Text{/t}
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <textarea style="height:200px;width:100%;" name="message">{$message}</textarea>
</td>
</tr>
</table>
</tr>
</table>
</td>
- <td style='width:50%; vertical-align:top;'>
- <table >
- </table>
- </td>
</tr>
</table>
diff --git a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_notify.inc b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_notify.inc
index 08e0c87f5fca753d8b988ea31f16fe8f6d1dd689..73174bf20b34ea3377ed9a90427d443ef1ba1dba 100644 (file)
public function __construct($config,$data = array())
{
DaemonEvent::__construct($config,$data);
- $this->s_Menu_Name = _("Send message");
- $this->s_Event_Name = _("Send message");
+ $this->s_Menu_Name = _("Notify");
+ $this->s_Event_Name = _("Notify");
$this->s_Schedule_Action = "job_trigger_action_notify";
$this->s_Trigger_Action= "job_trigger_action_notify";
$this->s_Queued_Action= "trigger_action_notify";
- $this->s_Menu_Image = "images/mailto.png";
- $this->s_List_Image = "images/mailto.png";
+ $this->s_Menu_Image = "images/status_stopped.png";
+ $this->s_List_Image = "images/status_stopped.png";
+
+ $this->a_targets = array("GOsa");
}
public function execute()
{
DaemonEvent::execute();
-
$display = $this->get_header();
-
$tmp = $this->data;
-
- /* Check if target add dialog is open */
- if($this->is_target_list_open() && $this->is_new){
- return($this->get_target_add_list());
- }
-
$smarty = get_smarty();
+ $smarty->assign("subject" ,"subject");
+ $smarty->assign("message" ,"message");
+ $smarty->assign("data" , $this->data);
$smarty->assign("data" , $this->data);
- $smarty->assign("target_list" , $this->get_target_list());
$smarty->assign("is_new" , $this->is_new);
$smarty->assign("timestamp" , $this->get_time_select());
$display.= $smarty->fetch(get_template_path('DaemonEvent_notify.tpl', TRUE, dirname(__FILE__)));
{
DaemonEvent::save_object();
}
+
+ public function save()
+ {
+ $ret = DaemonEvent::save();
+ $ret['user'] = array("test","asdf");
+ print_a($ret);
+ return($ret);
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>