|
From: <be...@us...> - 2013-01-05 14:28:23
|
Revision: 10671
http://sourceforge.net/p/xoops/svn/10671
Author: beckmi
Date: 2013-01-05 14:28:19 +0000 (Sat, 05 Jan 2013)
Log Message:
-----------
Adding Notebook module
Added Paths:
-----------
XoopsModules26/notebook/
XoopsModules26/notebook/branches/
XoopsModules26/notebook/releases/
XoopsModules26/notebook/trunk/
XoopsModules26/notebook/trunk/notebook/
XoopsModules26/notebook/trunk/notebook/admin/
XoopsModules26/notebook/trunk/notebook/admin/about.php
XoopsModules26/notebook/trunk/notebook/admin/header.php
XoopsModules26/notebook/trunk/notebook/admin/index.html
XoopsModules26/notebook/trunk/notebook/admin/index.php
XoopsModules26/notebook/trunk/notebook/admin/menu.php
XoopsModules26/notebook/trunk/notebook/admin/notebook.php
XoopsModules26/notebook/trunk/notebook/class/
XoopsModules26/notebook/trunk/notebook/class/form/
XoopsModules26/notebook/trunk/notebook/class/form/index.html
XoopsModules26/notebook/trunk/notebook/class/form/notebook.php
XoopsModules26/notebook/trunk/notebook/class/index.html
XoopsModules26/notebook/trunk/notebook/class/notebook.php
XoopsModules26/notebook/trunk/notebook/docs/
XoopsModules26/notebook/trunk/notebook/docs/changelog.txt
XoopsModules26/notebook/trunk/notebook/docs/index.html
XoopsModules26/notebook/trunk/notebook/icons/
XoopsModules26/notebook/trunk/notebook/icons/index.html
XoopsModules26/notebook/trunk/notebook/icons/logo_large.png
XoopsModules26/notebook/trunk/notebook/icons/logo_small.png
XoopsModules26/notebook/trunk/notebook/images/
XoopsModules26/notebook/trunk/notebook/images/arrow.png
XoopsModules26/notebook/trunk/notebook/images/flag_green.png
XoopsModules26/notebook/trunk/notebook/images/flag_red.png
XoopsModules26/notebook/trunk/notebook/images/flag_yellow.png
XoopsModules26/notebook/trunk/notebook/images/index.html
XoopsModules26/notebook/trunk/notebook/images/logo.png
XoopsModules26/notebook/trunk/notebook/include/
XoopsModules26/notebook/trunk/notebook/include/index.html
XoopsModules26/notebook/trunk/notebook/index.html
XoopsModules26/notebook/trunk/notebook/language/
XoopsModules26/notebook/trunk/notebook/language/english/
XoopsModules26/notebook/trunk/notebook/language/english/admin.php
XoopsModules26/notebook/trunk/notebook/language/english/help/
XoopsModules26/notebook/trunk/notebook/language/english/help/help.html
XoopsModules26/notebook/trunk/notebook/language/english/help/index.html
XoopsModules26/notebook/trunk/notebook/language/english/index.html
XoopsModules26/notebook/trunk/notebook/language/english/modinfo.php
XoopsModules26/notebook/trunk/notebook/language/index.html
XoopsModules26/notebook/trunk/notebook/sql/
XoopsModules26/notebook/trunk/notebook/sql/mysql.sql
XoopsModules26/notebook/trunk/notebook/templates/
XoopsModules26/notebook/trunk/notebook/templates/admin/
XoopsModules26/notebook/trunk/notebook/templates/admin/index.html
XoopsModules26/notebook/trunk/notebook/templates/admin/notebook_notebook.html
XoopsModules26/notebook/trunk/notebook/templates/index.html
XoopsModules26/notebook/trunk/notebook/xoops_version.php
Added: XoopsModules26/notebook/trunk/notebook/admin/about.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/admin/about.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/admin/about.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,27 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: about.php 8470 2011-12-12 21:50:07Z kraven30 $
+ */
+include dirname(__FILE__) . '/header.php';
+$xoops->header();
+$aboutAdmin = new XoopsModuleAdmin();
+$aboutAdmin->renderNavigation('about.php');
+$aboutAdmin->renderabout('6KJ7RW5DR3VTJ', true);
+$xoops->footer();
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/admin/header.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/admin/header.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/admin/header.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,25 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: header.php 8460 2011-12-11 20:08:06Z kraven30 $
+ */
+require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
+
+$xoops = Xoops::getInstance();
+XoopsLoad::load('system', 'system');
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/admin/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/admin/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/admin/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/admin/index.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/admin/index.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/admin/index.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,50 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: index.php 8487 2011-12-14 18:13:51Z kraven30 $
+ */
+include dirname(__FILE__) . '/header.php';
+// Get notebook handler
+$notebook_Handler = $xoops->getModuleHandler('notebook');
+
+$xoops->header();
+// notebook to do
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$notebook_todo = $notebook_Handler->getCount($criteria);
+// notebook in progress
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 1));
+$notebook_inprogress = $notebook_Handler->getCount($criteria);
+// notebook completed
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 2));
+$notebook_completed = $notebook_Handler->getCount($criteria);
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('index.php');
+
+$admin_page->addInfoBox(_MI_NOTEBOOK_NOTEBOOK);
+$admin_page->addInfoBoxLine(sprintf(_AM_NOTEBOOK_NB_TODO, '<span class="red">' . $notebook_todo . '</span>'));
+$admin_page->addInfoBoxLine(sprintf(_AM_NOTEBOOK_NB_INPROGRESS, '<span style="color:#FF8C00">' . $notebook_inprogress . '</span>'));
+$admin_page->addInfoBoxLine(sprintf(_AM_NOTEBOOK_NB_COMPLETED, '<span class="green">' . $notebook_completed . '</span>'));
+
+$admin_page->renderIndex();
+
+$xoops->footer();
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/admin/menu.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/admin/menu.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/admin/menu.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,34 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: menu.php 9443 2012-05-06 20:39:08Z kraven30 $
+ */
+$adminmenu = array();
+$i = 1;
+$adminmenu[$i]['title'] = _MI_NOTEBOOK_INDEX;
+$adminmenu[$i]['link'] = "admin/index.php";
+$adminmenu[$i]['icon'] = 'home.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_NOTEBOOK_NOTEBOOK;
+$adminmenu[$i]['link'] = "admin/notebook.php";
+$adminmenu[$i]['icon'] = 'index.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_NOTEBOOK_ABOUT;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = 'about.png';
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/admin/notebook.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/admin/notebook.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/admin/notebook.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,218 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: notebook.php 9443 2012-05-06 20:39:08Z kraven30 $
+ */
+include dirname(__FILE__) . '/header.php';
+// Get main instance
+$system = System::getInstance();
+// Check users rights
+if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) {
+ exit(_NOPERM);
+}
+// Parameters
+$nb_notebook = $xoops->getModuleConfig('notebook_pager');
+$mimetypes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png');
+$upload_size = 500000;
+$system = System::getInstance();
+// Get Action type
+$op = $system->cleanVars($_REQUEST, 'op', 'list', 'string');
+// Get notebook handler
+$notebook_Handler = $xoops->getModuleHandler('notebook');
+// Call Header
+$xoops->header('notebook_notebook.html');
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('notebook.php');
+
+switch ($op) {
+
+ case 'list':
+ default:
+ // Add Scripts
+ $xoops->theme->addScript('media/xoops/xoops.js');
+
+ $admin_page->addTips(_AM_NOTEBOOK_TIPS);
+ $admin_page->addItemButton(_AM_NOTEBOOK_ADD, 'notebook.php?op=new_notebook', 'add');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Get start pager
+ $start = $system->cleanVars($_REQUEST, 'start', 0, 'int');
+ // Criteria
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("id");
+ $criteria->setOrder("DESC");
+ $criteria->setStart($start);
+ $criteria->setLimit($nb_notebook);
+ // Count notebook
+ $notebook_count = $notebook_Handler->getCount($criteria);
+ $notebook_arr = $notebook_Handler->getall($criteria);
+ // Assign Template variables
+ $xoops->tpl->assign('notebook_count', $notebook_count);
+ if ($notebook_count > 0) {
+ foreach (array_keys($notebook_arr) as $i) {
+ $notebook['notebook_id'] = $notebook_arr[$i]->getVar("id");
+ $notebook['title'] = $notebook_arr[$i]->getVar("title");
+ $notebook['desc'] = $notebook_arr[$i]->getVar("desc");
+ $notebook['date_created'] = XoopsLocal::formatTimestamp($notebook_arr[$i]->getVar("date_created"), "m");
+ $user = $member_handler->getUser($notebook_arr[$i]->getVar("uid_creator"));
+ $notebook['uid_creator'] = $user->getVar("uname");
+
+ if($notebook_arr[$i]->getVar("status") == 0) {
+ $status_color = "#FF0000";//#FFE4E1
+ $status_name = _AM_NOTEBOOK_FORM_STATUS_MAKE;
+ $status_pourcentage = "1";
+ } else if($notebook_arr[$i]->getVar("status") == 1){
+ $status_color = "#FFFF00";//#FFFFE0
+ $status_name = _AM_NOTEBOOK_FORM_STATUS_PENDING;
+ $status_pourcentage = "50";
+ } else if($notebook_arr[$i]->getVar("status") == 2){
+ $status_color = "#00FF00";//#98FB98
+ $status_name = _AM_NOTEBOOK_FORM_STATUS_FINISHED;
+ $status_pourcentage = "100";
+ }
+
+ $status = "<span align='center' style='border: 1px solid rgb(0, 0, 0); background: rgb(255, 255, 255) none repeat scroll 0%; margin: 0 auto; text-align:center; display: block; height: 8px; width: 100%; float: left; overflow: hidden;'>
+ <span style='background:".$status_color." none repeat scroll 0%; text-align:left; display: block; height: 8px; width: ".$status_pourcentage."%; float: left; overflow: hidden;'></span>
+ </span><br />".$status_name;
+
+ $notebook['status'] = $status;
+
+ if($notebook_arr[$i]->getVar("priority") == 0) {
+ $priority = '<img src="'.XOOPS_URL.'/modules/notebook/images/flag_yellow.png" title="'._AM_NOTEBOOK_PRIORITY_LOW.'" alt="'._AM_NOTEBOOK_PRIORITY_LOW.'" />';
+ } else if($notebook_arr[$i]->getVar("priority") == 1){
+ $priority = '<img src="'.XOOPS_URL.'/modules/notebook/images/flag_green.png" title="'._AM_NOTEBOOK_PRIORITY_NORMAL.'" alt="'._AM_NOTEBOOK_PRIORITY_NORMAL.'" />';
+ } else if($notebook_arr[$i]->getVar("priority") == 2){
+ $priority = '<img src="'.XOOPS_URL.'/modules/notebook/images/flag_red.png" title="'._AM_NOTEBOOK_PRIORITY_HIGH.'" alt="'._AM_NOTEBOOK_PRIORITY_HIGH.'" />';
+ }
+ $notebook['priority'] = $priority;
+ $criteria1 = new CriteriaCompo();
+ $criteria1->add(new Criteria('uid', '('.$notebook_arr[$i]->getVar("uid_attributed").')', 'IN'));
+ //$attributed_arr = $member_handler->getUserList($criteria1);
+ $attributed = '';
+ foreach ($member_handler->getUserList($criteria1) as $value) {
+ $attributed .= '<img src="'.XOOPS_URL.'/modules/notebook/images/arrow.png" />'.$value.'<br />';
+ }
+
+ $notebook['attributed'] = $attributed;
+ $xoops->tpl->append_by_ref('notebook', $notebook);
+ unset($notebook);
+ unset($user);
+ }
+ }
+ // Display Page Navigation
+ if ($notebook_count > $nb_notebook) {
+ $nav = new XoopsPageNav($notebook_count, $nb_notebook, $start, 'start', 'op=list');
+ $xoops->tpl->assign('nav_menu', $nav->renderNav(2));
+ }
+ break;
+
+ // New notebook
+ case "new_notebook":
+ $admin_page->addItemButton(_AM_NOTEBOOK_LIST, 'notebook.php', 'application-view-detail');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Create form
+ $obj = $notebook_Handler->create();
+ $form = $xoops->getModuleForm($obj, 'notebook');
+ $form->render();
+ $xoops->tpl->assign('form', true);
+ break;
+
+ // Edit notebook
+ case "edit_notebook":
+ $admin_page->addItemButton(_AM_NOTEBOOK_ADD, 'notebook.php?op=new_notebook', 'add');
+ $admin_page->addItemButton(_AM_NOTEBOOK_LIST, 'notebook.php', 'application-view-detail');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Create form
+ $obj = $notebook_Handler->get($system->cleanVars($_REQUEST, 'notebook_id', 0, 'int'));
+ $form = $xoops->getModuleForm($obj, 'notebook');
+ $form->render();
+ $xoops->tpl->assign('form', true);
+ break;
+
+ // Save notebook
+ case "save_notebook":
+ if (!$xoops->security->check()) {
+ $xoops->redirect('notebook.php', 3, implode('<br />', $xoops->security->getErrors()));
+ }
+
+ if (isset($_POST["notebook_id"])) {
+ $obj = $notebook_Handler->get($system->cleanVars($_POST, 'notebook_id', 0, 'int'));
+ } else {
+ $obj = $notebook_Handler->create();
+ $obj->setVar("uid_creator", $xoopsUser->getVar('uid'));
+ }
+ // erreur
+ $obj->setVar("title", $_POST["title"]);
+ $obj->setVar("desc", $_POST["desc"]);
+ $obj->setVar("status", $_POST["status"]);
+ $obj->setVar("priority", $_POST["priority"]);
+ $obj->setVar("date_created", $_POST["date_created"]);
+
+ if(isset($_POST["uid_attributed"])) {
+ $uid_attributed = implode(',', $_POST["uid_attributed"]);
+ $obj->setVar("uid_attributed", $uid_attributed);
+ } else {
+ $obj->setVar("uid_attributed", $xoopsUser->getVar('uid'));
+ }
+
+ if ($notebook_Handler->insert($obj)) {
+ $xoops->redirect("notebook.php", 2, _AM_NOTEBOOK_SAVE);
+ }
+ $xoops->error($obj->getHtmlErrors());
+ $form = $xoops->getModuleForm($obj, 'notebook');
+ $form->render();
+ $xoops->tpl->assign('form', true);
+ break;
+
+ //Delete a notebook
+ case "notebook_delete":
+ $admin_page->addItemButton(_AM_NOTEBOOK_ADD, 'notebook.php?op=new_notebook', 'add');
+ $admin_page->addItemButton(_AM_NOTEBOOK_LIST, 'notebook.php', 'application-view-detail');
+ $admin_page->renderButton();
+ $notebook_id = $system->cleanVars($_REQUEST, 'notebook_id', 0, 'int');
+ $obj = $notebook_Handler->get($notebook_id);
+ if (isset($_POST["ok"]) && $_POST["ok"] == 1) {
+ if (!$xoops->security->check()) {
+ $xoops->redirect("notebook.php", 3, implode(",", $xoops->security->getErrors()));
+ }
+ if ($notebook_Handler->delete($obj)) {
+ $urlfile = XOOPS_UPLOAD_PATH . '/' . $obj->getVar("smile_url");
+ if (is_file($urlfile)) {
+ chmod($urlfile, 0777);
+ unlink($urlfile);
+ }
+ $xoops->redirect("notebook.php", 2, _AM_NOTEBOOK_DELETED);
+ } else {
+ $xoops->error($obj->getHtmlErrors());
+ }
+ } else {
+ // Define Stylesheet
+ $xoops->theme->addStylesheet('modules/system/css/admin.css');
+ $notebook_img = ($obj->getVar("smile_url")) ? $obj->getVar("smile_url") : 'blank.gif';
+ $xoops->confirm(array(
+ "ok" => 1, "notebook_id" => $_REQUEST["notebook_id"], "op" => "notebook_delete"
+ ), XOOPS_URL . '/modules/notebook/admin/notebook.php', sprintf(_AM_NOTEBOOK_SUREDEL) . '<br /><img src="' . XOOPS_UPLOAD_URL . '/' . $notebook_img . '" alt=""><br />');
+ }
+ break;
+
+}
+$xoops->footer();
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/class/form/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/class/form/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/class/form/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/class/form/notebook.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/class/form/notebook.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/class/form/notebook.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,63 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id$
+ */
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+class NotebookNotebookForm extends XoopsThemeForm
+{
+ /**
+ * @param XoopsBanner|XoopsObject $obj
+ */
+ public function __construct(Notebook &$obj)
+ {
+ $xoops = Xoops::getInstance();
+
+ $title = $obj->isNew() ? sprintf( _AM_NOTEBOOK_ADD ) : sprintf( _AM_NOTEBOOK_EDIT );
+
+ parent::__construct($title, 'form', 'notebook.php', 'post', true);
+
+
+ $this->addElement(new XoopsFormText( _AM_NOTEBOOK_FORM_TITLE, 'title', 80, 255, $obj->getVar('title') ), true );
+ $this->addElement(new xoopsFormTextArea( _AM_NOTEBOOK_FORM_DESC, 'desc', $obj->getVar('desc'), 8, 50), false );
+ if (!$obj->isNew()) {
+ //$this->addElement(new XoopsFormDateTime(_AM_NOTEBOOK_FORM_DATE_CREATED, 'date_created', 15, $obj->getVar('date_created')));
+ $uname = new XoopsFormSelect(_AM_NOTEBOOK_FORM_STATUS, "status", $obj->getVar('status'));
+ $options = array(0 =>_AM_NOTEBOOK_FORM_STATUS_MAKE, 1 => _AM_NOTEBOOK_FORM_STATUS_PENDING, 2 => _AM_NOTEBOOK_FORM_STATUS_FINISHED );
+ $uname->addOptionArray($options);
+ $this->addElement($uname, true);
+ }
+
+ $priority = new XoopsFormSelect(_AM_NOTEBOOK_PRIORITY, "priority", $obj->getVar('priority'));
+ $options = array(2 =>_AM_NOTEBOOK_PRIORITY_HIGH, 1 => _AM_NOTEBOOK_PRIORITY_NORMAL, 0 => _AM_NOTEBOOK_PRIORITY_LOW );
+ $priority->addOptionArray($options);
+ $this->addElement($priority, true);
+
+ //explode(',',$obj->getVar('uid_attributed'))
+ $this->addElement(new XoopsFormSelectUser(_AM_NOTEBOOK_UID_ATTRIBUTED, 'uid_attributed', false, null, 5, true));
+
+ if (!$obj->isNew()) {
+ $this->addElement(new XoopsFormHidden( 'notebook_id', $obj->getVar('id') ) );
+ }
+ $this->addElement(new XoopsFormHidden('op', 'save_notebook' ) );
+ $this->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit' ) );
+ }
+}
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/class/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/class/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/class/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/class/notebook.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/class/notebook.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/class/notebook.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,53 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: notebook.php 9676 2012-06-19 21:05:06Z Kraven30 $
+ */
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+class NotebookNotebook extends XoopsObject
+{
+ /**
+ * Constructor
+ */
+ public function __construct()
+ {
+ $this->initVar('id', XOBJ_DTYPE_INT, null, false, 5);
+ $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, false);
+ $this->initVar('desc', XOBJ_DTYPE_TXTBOX, null, false);
+ $this->initVar('uid_creator', XOBJ_DTYPE_INT, null, false, 11);
+ $this->initVar('uid_attributed', XOBJ_DTYPE_TXTBOX, null, false);
+ $this->initVar('date_created', XOBJ_DTYPE_INT, null, false, 10);
+ $this->initVar('date_finished', XOBJ_DTYPE_INT, null, false, 10);
+ $this->initVar('status', XOBJ_DTYPE_INT, null, false, 1);
+ $this->initVar('priority', XOBJ_DTYPE_INT, null, false, 1);
+ }
+}
+
+class NotebookNotebookHandler extends XoopsPersistableObjectHandler
+{
+ /**
+ * @param null|XoopsDatabase $db
+ */
+ public function __construct(XoopsDatabase $db = null)
+ {
+ parent::__construct($db, 'mod_notebook', 'notebooknotebook', 'id', 'title');
+ }
+}
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/docs/changelog.txt
===================================================================
--- XoopsModules26/notebook/trunk/notebook/docs/changelog.txt (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/docs/changelog.txt 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,3 @@
+Version 0.1
+-------------------
+Notebook Manager
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/docs/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/docs/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/docs/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/icons/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/icons/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/icons/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/icons/logo_large.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/icons/logo_large.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/icons/logo_large.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/icons/logo_large.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/icons/logo_large.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/icons/logo_small.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/icons/logo_small.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/icons/logo_small.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/icons/logo_small.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/icons/logo_small.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/images/arrow.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/images/arrow.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/images/arrow.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/images/arrow.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/images/arrow.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/images/flag_green.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/images/flag_green.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/images/flag_green.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/images/flag_green.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/images/flag_green.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/images/flag_red.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/images/flag_red.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/images/flag_red.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/images/flag_red.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/images/flag_red.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/images/flag_yellow.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/images/flag_yellow.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/images/flag_yellow.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/images/flag_yellow.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/images/flag_yellow.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/images/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/images/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/images/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/images/logo.png
===================================================================
(Binary files differ)
Index: XoopsModules26/notebook/trunk/notebook/images/logo.png
===================================================================
--- XoopsModules26/notebook/trunk/notebook/images/logo.png 2013-01-04 22:59:42 UTC (rev 10670)
+++ XoopsModules26/notebook/trunk/notebook/images/logo.png 2013-01-05 14:28:19 UTC (rev 10671)
Property changes on: XoopsModules26/notebook/trunk/notebook/images/logo.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules26/notebook/trunk/notebook/include/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/include/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/include/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/language/english/admin.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/language/english/admin.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/language/english/admin.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,60 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: admin.php 9443 2012-05-06 20:39:08Z kraven30 $
+ */
+define("_AM_NOTEBOOK_ACTION","Action");
+define("_AM_NOTEBOOK_ADD", "Add a new notebook");
+define("_AM_NOTEBOOK_CODE","Code");
+define("_AM_NOTEBOOK_DELETE","Delete notebook");
+define("_AM_NOTEBOOK_DELETED","Notebook deleted");
+define("_AM_NOTEBOOK_DESCRIPTION","Description");
+define("_AM_NOTEBOOK_DISPLAY","Display in form");
+define("_AM_NOTEBOOK_EDIT","Edit notebook");
+define("_AM_NOTEBOOK_FILE","Notebook file");
+define("_AM_NOTEBOOK_IMAGE_PATH","Files exist in: %s");
+define("_AM_NOTEBOOK_LIST", "List of notebook");
+define("_AM_NOTEBOOK_NB_TODO","There are %s notebook(s) 'To do' in our database");
+define("_AM_NOTEBOOK_NB_INPROGRESS","There are %s notebook(s) 'In progress' in our database");
+define("_AM_NOTEBOOK_NB_COMPLETED","There are %s notebook(s) 'Completed' in our database");
+define("_AM_NOTEBOOK_OFF","Display in the form ");
+define("_AM_NOTEBOOK_ON","Does not display in the form");
+define("_AM_NOTEBOOK_SAVE","Notebook saved");
+define("_AM_NOTEBOOK_SUREDEL","Are you sure you want to delete this notebook?");
+define("_AM_NOTEBOOK_NOTEBOOK","Notebook");
+define("_AM_NOTEBOOK_UPLOADS","Upload");
+define("_AM_NOTEBOOK_CREATE","Creates the");
+define("_AM_NOTEBOOK_INFOS","Infos");
+define("_AM_NOTEBOOK_ATTRIBUTED","Attributed to");
+define("_AM_NOTEBOOK_STATUS","Status");
+define("_AM_NOTEBOOK_PRIORITY","Priority");
+define("_AM_NOTEBOOK_PRIORITY_HIGH","Hight");
+define("_AM_NOTEBOOK_PRIORITY_NORMAL","Normal");
+define("_AM_NOTEBOOK_PRIORITY_LOW","Low");
+define("_AM_NOTEBOOK_FORM_TITLE","Title");
+define("_AM_NOTEBOOK_FORM_DESC","Infos");
+define("_AM_NOTEBOOK_FORM_DATE_CREATED","Modifier la date de création");
+define("_AM_NOTEBOOK_FORM_STATUS","Status");
+define("_AM_NOTEBOOK_FORM_STATUS_MAKE","To do");
+define("_AM_NOTEBOOK_FORM_STATUS_PENDING","In progress");
+define("_AM_NOTEBOOK_FORM_STATUS_FINISHED","Completed");
+define("_AM_NOTEBOOK_UID_ATTRIBUTED","Attributed to");
+
+// Tips
+define("_AM_NOTEBOOK_TIPS","<ul><li>Add, update or delete notebook</li></ul>");
Added: XoopsModules26/notebook/trunk/notebook/language/english/help/help.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/language/english/help/help.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/language/english/help/help.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,4 @@
+<h4>Description</h4>
+<p>
+ Notebook Manager<br/><br/>
+</p>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/language/english/help/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/language/english/help/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/language/english/help/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/language/english/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/language/english/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/language/english/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/language/english/modinfo.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/language/english/modinfo.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/language/english/modinfo.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,30 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: admin.php 9443 2012-05-06 20:39:08Z kraven30 $
+ */
+// Info module
+define("_MI_NOTEBOOK_NAME", "Notebook");
+define("_MI_NOTEBOOK_DESC", "Module for managing notebook");
+// Menu
+define("_MI_NOTEBOOK_INDEX", "Home");
+define("_MI_NOTEBOOK_NOTEBOOK", "Notebook manager");
+define("_MI_NOTEBOOK_ABOUT", "About");
+// Preferences
+define("_MI_NOTEBOOK_PREFERENCE_PAGER", "Number of notebook to display per page");
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/language/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/language/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/language/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/sql/mysql.sql
===================================================================
--- XoopsModules26/notebook/trunk/notebook/sql/mysql.sql (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/sql/mysql.sql 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,16 @@
+#
+# Table structure for table `mod_notebook`
+#
+
+CREATE TABLE `mod_notebook` (
+ `id` int(8) NOT NULL AUTO_INCREMENT,
+ `title` varchar(255) NOT NULL,
+ `desc` text NOT NULL,
+ `uid_creator` int(11) NOT NULL DEFAULT '0',
+ `uid_attributed` varchar(255) NOT NULL,
+ `date_created` int(10) NOT NULL DEFAULT '0',
+ `date_finished` int(10) NOT NULL DEFAULT '0',
+ `status` tinyint(1) NOT NULL DEFAULT '0',
+ `priority` tinyint(1) NOT NULL DEFAULT '1',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM;
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/templates/admin/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/templates/admin/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/templates/admin/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/templates/admin/notebook_notebook.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/templates/admin/notebook_notebook.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/templates/admin/notebook_notebook.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,57 @@
+<script type="text/javascript">
+ Xoops.setStatusImg('accept', '<{xoAdminIcons success.png}>');
+ Xoops.setStatusImg('cancel', '<{xoAdminIcons cancel.png}>');
+ Xoops.setStatusText('accept', '<{$smarty.const._AM_NOTEBOOK_OFF}>');
+ Xoops.setStatusText('cancel', '<{$smarty.const._AM_NOTEBOOK_ON}>');
+</script>
+<{includeq file="admin:system|admin_navigation.html"}>
+<{includeq file="admin:system|admin_tips.html"}>
+<{includeq file="admin:system|admin_buttons.html"}>
+<{if $notebook_count == true}>
+<table id="xo-notebook-sorter" class="outer tablesorter">
+ <thead>
+ <tr>
+ <th class="txtcenter"><{$smarty.const._AM_NOTEBOOK_CREATE}></th>
+ <th class="txtcenter"><{$smarty.const._AM_NOTEBOOK_PRIORITY}></th>
+ <th class="txtleft"><{$smarty.const._AM_NOTEBOOK_INFOS}></th>
+ <th class="txtcenter"><{$smarty.const._AM_NOTEBOOK_ATTRIBUTED}></th>
+ <th class="txtcenter"><{$smarty.const._AM_NOTEBOOK_STATUS}></th>
+ <th class="txtcenter"><{$smarty.const._AM_NOTEBOOK_ACTION}></th>
+ </tr>
+ </thead>
+ <tbody>
+ <{foreach item=notebook from=$notebook}>
+ <tr class="<{cycle values='even,odd'}> alignmiddle">
+ <td class="txtcenter width2"><{$notebook.date_created}><br />par <{$notebook.uid_creator}></td>
+ <td class="txtcenter width1"><{$notebook.priority}></td>
+ <td class="txtleft width10"><strong><{$notebook.title}></strong><br /><{$notebook.desc}></td>
+ <td class="txtleft width2"><{$notebook.attributed}></td>
+ <td class="txtcenter width1"><{$notebook.status}></td>
+ <td class="xo-actions txtcenter width2">
+ <a href="notebook.php?op=edit_notebook&notebook_id=<{$notebook.notebook_id}>" title="<{$smarty.const._AM_NOTEBOOK_EDIT}>">
+ <img src="<{xoAdminIcons edit.png}>" alt="<{$smarty.const._AM_NOTEBOOK_EDIT}>">
+ </a>
+ <a href="notebook.php?op=notebook_delete&notebook_id=<{$notebook.notebook_id}>" title="<{$smarty.const._AM_NOTEBOOK_DELETE}>">
+ <img src="<{xoAdminIcons delete.png}>" alt="<{$smarty.const._AM_NOTEBOOK_DELETE}>">
+ </a>
+ </td>
+ </tr>
+ <{/foreach}>
+ </tbody>
+</table>
+<div style="float:right;margin-right:10px;">
+ <img src="<{$xoops_url}>/modules/notebook/images/flag_yellow.png" /> <{$smarty.const._AM_NOTEBOOK_PRIORITY_LOW}>
+ <img src="<{$xoops_url}>/modules/notebook/images/flag_green.png" /> <{$smarty.const._AM_NOTEBOOK_PRIORITY_NORMAL}>
+ <img src="<{$xoops_url}>/modules/notebook/images/flag_red.png" /> <{$smarty.const._AM_NOTEBOOK_PRIORITY_HIGH}>
+</div>
+<!-- Display notebook navigation -->
+<div class="clear spacer"></div>
+<{if $nav_menu}>
+<div class="xo-avatar-pagenav floatright"><{$nav_menu}></div>
+<div class="clear spacer"></div>
+<{/if}>
+<{/if}>
+<!-- Display notebook form (add,edit) -->
+<{if $form}>
+<{includeq file="module:system|system_form.html"}>
+<{/if}>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/templates/index.html
===================================================================
--- XoopsModules26/notebook/trunk/notebook/templates/index.html (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/templates/index.html 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules26/notebook/trunk/notebook/xoops_version.php
===================================================================
--- XoopsModules26/notebook/trunk/notebook/xoops_version.php (rev 0)
+++ XoopsModules26/notebook/trunk/notebook/xoops_version.php 2013-01-05 14:28:19 UTC (rev 10671)
@@ -0,0 +1,89 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * notebook module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package notebook
+ * @since 2.6.0
+ * @author Cointin Maxime (AKA Kraven30)
+ * @version $Id: xoops_version.php 9798 2012-07-07 17:50:40Z Kraven30 $
+ */
+
+/*
+ General settings
+ */
+$modversion = array();
+$modversion['name'] = _MI_NOTEBOOK_NAME;
+$modversion['description'] = _MI_NOTEBOOK_DESC;
+$modversion['version'] = 0.1;
+$modversion['author'] = 'Cointin Maxime';
+$modversion['nickname'] = 'Kraven30';
+$modversion['credits'] = 'The XOOPS Project';
+$modversion['license'] = 'GNU GPL 2.0';
+$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/';
+$modversion['official'] = 1;
+$modversion['help'] = 'page=help';
+$modversion['image'] = 'images/logo.png';
+$modversion['dirname'] = 'notebook';
+
+/*
+ Settings for configs
+*/
+$modversion['release_date'] = '2011/12/20';
+$modversion['module_website_url'] = 'http://www.xoops.org/';
+$modversion['module_website_name'] = 'XOOPS';
+$modversion['module_status'] = 'ALPHA';
+$modversion['min_php'] = '5.2';
+$modversion['min_xoops'] = '2.6.0';
+$modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7');
+
+// Admin menu
+// Set to 1 if you want to display menu generated by system module
+//$modversion['system_menu'] = 1;
+// Mysql file
+$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
+
+// Tables created by sql file (without prefix!)
+$modversion['tables'][1] = "mod_notebook";
+
+// Admin things
+$modversion['hasAdmin'] = 1;
+$modversion['adminindex'] = 'admin/index.php';
+$modversion['adminmenu'] = 'admin/menu.php';
+
+// Scripts to run upon installation or update
+$modversion['onInstall'] = 'include/install.php';
+
+// JQuery
+$modversion['jquery'] = 1;
+
+// Menu
+$modversion['hasMain'] = 1;
+
+/*
+ Admin Templates
+*/
+$modversion['templates'][] = array( 'file' => 'notebook_notebook.html', 'description' => '', 'type' => 'admin' );
+
+/*
+ Preferences
+*/
+$i = 0;
+$modversion['config'][$i]['name'] = 'notebook_pager';
+$modversion['config'][$i]['title'] = '_MI_NOTEBOOK_PREFERENCE_PAGER';
+$modversion['config'][$i]['description'] = '';
+$modversion['config'][$i]['formtype'] = 'textbox';
+$modversion['config'][$i]['valuetype'] = 'int';
+$modversion['config'][$i]['default'] = 20;
+$i++;
\ No newline at end of file
|