Projet

Général

Profil

Révision d485029b

Voir les différences:

htdocs/epack/export/checksum.md5
1
9a23820e93e146acb3f17bea87af9914  checksum
1
5826d5f26c71610ec0516f7ea3cf4d7d  checksum
htdocs/epack/new.php
123 123
      $message .= "<p>Le compte de votre client a été créé, vous pouvez maintenant le sélectionner dans la liste déroulante et valider.</p>";
124 124
      $_SESSION['epack_session'] = 3;
125 125
      //273 c'est l'entite clients a trier ... hardcode
126
      $query = "INSERT INTO glpi_entities VALUES('','" . addslashes(propre($_POST['client_name'])) . "','" . $_SESSION['login_entity'] . "','1. Clients > 00 - A Trier > " . addslashes($_POST['client_name']) . "','',3)";
126
      $query = "INSERT INTO glpi_entities VALUES('','" . addslashes(propre($_POST['client_name'])) . "','" . $_SESSION['login_entity'] . "','1. AbulEdu > 00 - A Trier > " . addslashes($_POST['client_name']) . "','',3)";
127 127
      $result = $DB->query($query);
128 128
      
129 129
      //et il faut tout de suite raccrocher le userid de la personne a cette entitee pour qu'il ait les droits ad-hoc
htdocs/epack/register.php
314 314
      }
315 315
      else {
316 316
	$message .= "<li>Tentative de lien avec l'entité racine refusée pour $usermail: <font color=\"red\">ERROR</font></li>\n";
317
	//$message .= "<li>$query2</li>\n";
317 318
      }
318 319
    }
319 320
    //Sinon c'est que tout est déjà fait !
......
518 519
	    $data1 = $DB->fetch_assoc($result1);
519 520
	    $identityenduser = $data1['ID'];
520 521
	  }
521

  
522
	  //$message .= "<li>Entity: $query1</li>\n";
522 523
	  add_user_and_update_link($datapost['IEMAIL'], $identityenduser,$datapost['INAME'],$datapost['ICITY'],"Installation");
523 524
	  add_user_and_update_link($datapost['ADM_EMAIL'], $identityenduser,$datapost['ADM_LASTNAME'],$datapost['ADM_FIRSTNAME'],"Directrice ou directeur");
524 525
	  add_user_and_update_link($datapost['PR_EMAIL'], $identityenduser,$datapost['PR_LASTNAME'],$datapost['PR_FIRSTNAME'],"Autre contact");
htdocs/front/helpdesk.abuledu_details.php
136 136

  
137 137
print "</table>";
138 138

  
139
print "<h2>Votre contrat de maintenance</h2>
139
print "<h2>Votre cahier de recette</h2>";
140 140

  
141
<p>Informations en cours de traitement.</p>";
141
$query = "SELECT glpi_docs.FK_entities, glpi_docs.recursive,
142
  glpi_docs.name AS name,
143
  glpi_docs.filename AS filename,
144
  glpi_docs.mime AS mimetype,
145
  glpi_docs.ID AS ID,
146
  glpi_docs.comments AS comments
147
FROM glpi_docs
148
  LEFT JOIN glpi_entities ON (glpi_docs.FK_entities = glpi_entities.ID)
149
  LEFT JOIN glpi_dropdown_rubdocs ON (glpi_docs.rubrique = glpi_dropdown_rubdocs.ID)
150
WHERE
151
  glpi_docs.filename LIKE '%recette%' AND
152
  glpi_docs.deleted='0' AND ( glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ") OR ( glpi_docs.recursive='1' AND glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ")) ) ORDER BY glpi_docs.name";
153

  
154
$result = $DB->query($query) or die($DB->error());
155
//print $query;
156

  
157
if($DB->numrows($result) == 0) {
158
  print "<p>Aucune information disponible ...</p>";
159
 }
160
 else {
161
   for($i = 0; $i < $DB->numrows($result); $i++) {
162
     $data=$DB->fetch_array($result);
163
     print "<p>Vous pouvez télécharger votre cahier de recette: <a href='document.abuledu_view.php?file=" . $data['filename'] . "'>" . $data['filename'] . "</a></p>\n";
164
   }
165
 }
166

  
167
print "<h2>Votre contrat de maintenance</h2>";
142 168

  
169
$query = "SELECT glpi_docs.FK_entities, glpi_docs.recursive,
170
  glpi_docs.name AS name,
171
  glpi_docs.filename AS filename,
172
  glpi_docs.mime AS mimetype,
173
  glpi_docs.ID AS ID,
174
  glpi_docs.comments AS comments
175
FROM glpi_docs
176
  LEFT JOIN glpi_entities ON (glpi_docs.FK_entities = glpi_entities.ID)
177
  LEFT JOIN glpi_dropdown_rubdocs ON (glpi_docs.rubrique = glpi_dropdown_rubdocs.ID)
178
WHERE
179
  glpi_docs.filename LIKE '%contrat%' AND
180
  glpi_docs.deleted='0' AND ( glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ") OR ( glpi_docs.recursive='1' AND glpi_docs.FK_entities IN (" . $_SESSION['glpiactive_entity'] . ")) ) ORDER BY glpi_docs.name";
181

  
182
$result = $DB->query($query) or die($DB->error());
183
//print $query;
184

  
185
if($DB->numrows($result) == 0) {
186
  print "<p>Aucune information disponible ...</p>";
187
 }
188
 else {
189
   for($i = 0; $i < $DB->numrows($result); $i++) {
190
     $data=$DB->fetch_array($result);
191
     print "<p>Vous pouvez télécharger votre contrat de maintenance: <a href='document.abuledu_view.php?file=" . $data['filename'] . "'>" . $data['filename'] . "</a></p>\n";
192
   }
193
 }
143 194

  
144 195
helpFooter();
145 196

  

Formats disponibles : Unified diff

Redmine Appliance - Powered by TurnKey Linux