Exemple #1
0
             echo '</p>';
             echo '</form>';
             $content = ob_get_clean();
             $status = 'OK';
         } else {
             if ($op == 'modele_modify') {
                 // Modify the description or the name of a template
                 $cn = new Database();
                 ob_start();
                 echo HtmlInput::title_box(_('Modification'), 'folder_admin_div');
                 echo '<form method="post">';
                 $name = $cn->get_value("select mod_name from modeledef where " . " mod_id=\$1", array($dossier));
                 $desc = $cn->get_value("select mod_desc from modeledef where " . " mod_id=\$1", array($dossier));
                 $wText = new IText();
                 echo 'Nom : ' . $wText->input('name', $name);
                 $wDesc = new ITextArea();
                 $wDesc->heigh = 5;
                 echo '<br>Description :<br>';
                 echo $wDesc->input('desc', $desc);
                 echo HtmlInput::hidden('m', $dossier);
                 echo HtmlInput::hidden('action', 'modele_mgt');
                 echo '<br>';
                 echo HtmlInput::submit('upd', 'Modifie');
                 echo '</form>';
                 $content = ob_get_clean();
                 $status = 'OK';
             }
         }
     }
 }
 //----------------------------------------------------------------
Exemple #2
0
    <?php 
}
?>
    </table>
</div>

<div id="add_todo_list" class="box" style="display:none">
	<script charset="utf-8" type="text/javascript" language="javascript">
		new Draggable($('add_todo_list'),{});
	</script>
<form method="post">
<?php 
$wDate = new IDate('p_date_todo');
$wDate->id = 'p_date_todo';
$wTitle = new IText('p_title');
$wDesc = new ITextArea('p_desc');
$wDesc->heigh = 5;
$wDesc->width = 40;
echo HtmlInput::title_box("Note", "add_todo_list", "hide");
echo _("Date") . " " . $wDate->input() . '<br>';
echo _("Titre") . " " . $wTitle->input() . '<br>';
echo _("Description") . "<br>" . $wDesc->input() . '<br>';
echo dossier::hidden();
echo HtmlInput::hidden('tl_id', 0);
echo HtmlInput::submit('save_todo_list', _('Sauve'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"');
echo HtmlInput::button('hide', _('Annuler'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"');
?>
</form>
</div>

<script type="text/javascript" language="javascript" charset="utf-8">
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
/**
 * @brief included from Todo_List::display
 * create a html with content
 * @see Todo_List
 */
global $g_user;
$wDate = new IDate('p_date_todo', $this->tl_date);
$wTitle = new IText('p_title', $this->tl_title);
$wDesc = new ITextArea('p_desc', strip_tags($this->tl_desc));
$wDesc->heigh = 5;
$wDesc->width = 40;
$is_public = new ICheckBox('p_public');
$is_public->value = 'Y';
$is_public->set_check($this->is_public);
$dossier = Dossier::id();
$close_share = " if ( \$('shared_{$this->tl_id}') ){ \$('shared_{$this->tl_id}').remove();}";
echo HtmlInput::title_box("Note", "todo_list_div" . $this->tl_id, 'close', $close_share);
?>
<form id="todo_form_<?php 
echo $this->tl_id;
?>
" onsubmit="todo_list_save(<?php 
echo $this->tl_id;
?>