Projet

Général

Profil

Révision ce399d47

Voir les différences:

plugins/anet_epacks/front/plugin_anet_epacks.generate_odt_activated.form.php
13 13
//checkSeveralRightsOr(array("config" => "w", "profile" => "w"));
14 14

  
15 15
//Si le fichier existe déjà on le passe
16
$fichier = "archives/" . $_GET['date'] . "-" . $_GET['code'] . $_GET['mode'] . ".activated.odt";
16
$fichier = "archives/" . str_replace("-","",$_GET['date']) . "-" . $_GET['code'] . $_GET['mode'] . ".activated.odt";
17 17

  
18 18
pushfile($fichier);
19 19

  
......
106 106

  
107 107

  
108 108
//On créé un fichier local pour archive ...
109
$odf->saveToDisk("archives/" . $_GET['date'] . "-" . $data['code'] . $_GET['mode'] . ".activated.odt");
109
$odf->saveToDisk("archives/" . str_replace("-","",$_GET['date']) . "-" . $data['code'] . $_GET['mode'] . ".activated.odt");
110 110

  
111 111
pushfile($fichier);
112 112

  
plugins/anet_epacks/front/plugin_anet_epacks.view.php
114 114
  <td>" . $data['expiration_date'] . "</td>
115 115
  <td>" . $data['client'] . "<br />Serveur <a href=\"../../manageentity/index.php?active_entity=" . $data['FK_enduser'] . "\">" . $data['serveur'] . "</a></td>
116 116
  <td>" . $data['code'] . "</td>
117
  <td>
118
    <a href=\"archives/" . $data['creation_date'] . "-" . $data['code'] . ".odt\">ePack</a> (fichier initial) - <a href=\"plugin_anet_epacks.generate_odt_client2.form.php?code=" . $data['code'] . "\">Actualiser</a><br />
117
  <td>\n";
118

  
119
  $ficepack="archives/" . $data['creation_date'] . "-" . $data['code'] . ".odt";
120
  if(!file_exists($ficepack))
121
    $ficepack="archives/" . str_replace("-","",$data['creation_date']) . "-" . $data['code'] . ".odt";
122

  
123
print "
124
    <a href=\"" . $ficepack . "\">ePack</a> (fichier initial) - <a href=\"plugin_anet_epacks.generate_odt_client2.form.php?code=" . $data['code'] . "\">Actualiser</a><br />
119 125
    <a href=\"plugin_anet_epacks.generate_odt_activated.form.php?date=" . $data['activation_date'] . "&code=" . $data['code'] . "\">ePack activé</a> (après activation) <br />
120 126
    <a href=\"plugin_anet_epacks.generate_odt_activated.form.php?date=" . $data['activation_date'] . "&code=" . $data['code'] . "&mode=-avenant_contrat_partenaire_enr2009\">ePack activé pour un partenaire ENR2009</a>
121 127
  </td>

Formats disponibles : Unified diff

Redmine Appliance - Powered by TurnKey Linux