AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.216.233
Web Server : Apache
System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : logmcpe ( 111175)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/logmcpe/www/TEST/../MCPRO/vendor/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/TEST/../MCPRO/vendor/../todo.php
<?
include_once 'code/init.php';
$edition = false;
if(isset($_POST['type']) && ($_POST['type']=='edition')) $edition = true;
if ($edition) {
ob_start();
?>

<form id="taches" action="code/taches/traitements.php" method="post">
  <div id="listArea" style="text-align:left;">
    <ol id="todo_edition" style="text-align:left;">
      <? 
		$taches = dbi_query("SELECT taches_id, taches_intitule FROM " . TABLE_TACHES . " WHERE taches_accomplie='0' AND agence_id = '$agence' AND projet_id='0' ORDER BY taches_ordre");
		while ($a = dbi_fetch_row($taches))
		{
			echo '<li style="background-color: transparent; padding:8px; font-size:12px;" id="'.$a['taches_id'].'" class="gtd"><div class="drag-handle" id="handle-'.$cpt.'"><input type="text" name="tache_'.$a['taches_id'].'" value="'.$a['taches_intitule'].'" style="width:95%;" maxlength="255" /><img src="images/spacer.gif" width="6" /><input type="image" name="'.$a['taches_id'].'" src="images/supr.gif" class="gtd_sup" /></div></li>';
		}
	?>
    </ol>
    <div align="center" style="margin-bottom:10px;">
      <input type="hidden" value="modifier_taches" name="action" />
      <input type="submit" value="Appliquer les modifications" class="bigbutton" />
      ou
      <input type="button" value="Annuler les modifications" id="load_todolist" />
    </div>
  </div>
</form>
<div id="data"></div>
<div id="test"></div>
<?
$out = ob_get_clean();
$out = htmlentities2unicodeentities($out);
$out = str_replace('&euro;','&#8364;',$out);
$out = str_replace('&nbsp;','&#160;',$out);
echo $out;
} else { 
ob_start();
?>
<form id="taches" action="code/taches/traitements.php" method="post">
  <input type="text" id="taches_intitule" name="taches_intitule" style="width:80%;" maxlength="255" />
  <input type="hidden" name="projet_id" value="0" />
  <input type="hidden" name="action" value="nouvelle_tache" /><img src="images/spacer.gif" width="6" />
  <input type="submit" value="Ajouter" class="bigbutton" />
</form>
<div id="listArea" style="text-align:left;">
  <ol id="todo" style="text-align:left;">
    <li style="background-color: transparent; padding:8px; font-size:12px;"><a href="#" onclick="return false;" id="edition_todolist">Editer</a></li>
    <? 
		$cpt = 1;
		$taches = dbi_query("SELECT taches_id, taches_intitule FROM " . TABLE_TACHES . " WHERE taches_accomplie='0' AND agence_id = '$agence' AND projet_id='0' ORDER BY taches_ordre");
		while ($a = dbi_fetch_row($taches))
		{	
			$cpt++;
			echo '<li style="background-color: transparent; padding:8px; font-size:12px;" id="'.$a['taches_id'].'" class="gtd"><input type="checkbox" name="'.$a['taches_id'].'" id="check_'.$a['taches_id'].'" class="gtd_tache" /><img src="images/spacer.gif" width="6" /><span class="drag-handle" id="handle-'.$cpt.'">'.$a['taches_intitule'].'</span></li>';
		}
	?>
  </ol>
</div>
<div id="data"></div>
<div id="log" style="display:none;"></div>
<div id="test"></div>
<h3 style="margin-bottom:0;">T&acirc;ches accomplies</h3>
<ol id="done" style="text-align:left;margin-top:0;">
  <? 
		$taches = dbi_query("SELECT taches_id, taches_intitule, UNIX_TIMESTAMP(taches_date_accomplie) as date, prenom FROM " . TABLE_TACHES . " t LEFT JOIN users ON user_id = taches_user_accomplie WHERE taches_accomplie='1' AND t.agence_id = '$agence' AND projet_id='0' ORDER BY taches_date_accomplie DESC LIMIT 10");
		while ($a = dbi_fetch_row($taches))
		{
//setlocale(LC_TIME, "fra_fra");
//setlocale(LC_TIME, array('fr_fr', 'fr_FR', 'fr', 'FR'));

	if (ereg("WIN", PHP_OS)) setlocale (LC_TIME, "french");
	else if (ereg("BSD", PHP_OS)) setlocale (LC_TIME, "fr_FR.ISO8859-1");
	else setlocale (LC_TIME, "fr_FR");
			$date = strftime("%A %d/%m/%y &agrave; %HH%M",$a['date']);
			echo '<li style="background-color: transparent; padding:8px; font-size:12px;" id="'.$a['taches_id'].'" class="gtdone"><input type="checkbox" name="'.$a['taches_id'].'" id="check_'.$a['taches_id'].'" class="gtd_done" checked="checked" /><img src="images/spacer.gif" width="6" /><span class="drag-handle" id="handle-'.$a['taches_id'].'">'.$a['taches_intitule'].' (accompli par '.$a['prenom'].' le '.$date.')</span></li>';
		}
	?>
</ol>
<? 
$out = ob_get_clean();
$out = htmlentities2unicodeentities($out);
$out = str_replace('&euro;','&#8364;',$out);
$out = str_replace('&nbsp;','&#160;',$out);
echo $out;
} ?>

AnonSec - 2021