[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4972 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4972 - phpcompta/trunk/include |
Date: |
Thu, 21 Jun 2012 19:14:48 +0200 (CEST) |
Author: danydb
Date: 2012-06-21 19:14:48 +0200 (Thu, 21 Jun 2012)
New Revision: 4972
Added:
phpcompta/trunk/include/doc_state.inc.php
Log:
0000605: Ajouter interface pour les documents state
Added: phpcompta/trunk/include/doc_state.inc.php
===================================================================
--- phpcompta/trunk/include/doc_state.inc.php (rev 0)
+++ phpcompta/trunk/include/doc_state.inc.php 2012-06-21 17:14:48 UTC (rev
4972)
@@ -0,0 +1,54 @@
+<?php
+
+/*
+ * This file is part of PhpCompta.
+ *
+ * PhpCompta is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * PhpCompta 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. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PhpCompta; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/**
+ * @file
+ * @brief Manage the status of the document (document_state)
+ *
+ */
+global $cn;
+
+if ( isset($_POST['add']))
+{
+ if (trim ($_POST['s_value'])!="")
+ {
+ $cn->exec_sql('insert into document_state(s_value) values
($1)',array($_POST['s_value']));
+ }
+}
+$a_stat=$cn->get_array("select s_value from document_state order by 1");
+?>
+
+<table>
+ <? for ($i=0;$i<count($a_stat);$i++):?>
+
+ <tr>
+ <td>
+ <?=h($a_stat[$i]['s_value'])?>
+ </td>
+ </tr>
+ <? endfor;?>
+</table>
+<form method="post" onsubmit="return confirm ('Vous confirmez ?'); ">
+ <? $value=new IText("s_value",""); echo $value->input()?>
+ <?=HtmlInput::submit("add", "Ajouter")?>
+</form>
\ No newline at end of file
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4972 - phpcompta/trunk/include,
phpcompta-dev <=