Пример #1
0
function getRepository($dir = "../")
{
    $directories = scandir($dir);
    $directory = array();
    foreach ($directories as $file) {
        if ($file != ".." && $file != "." && $file != "editor") {
            array_push($directory, $file);
        }
    }
    liste($dir, $directory);
}
Пример #2
0
            echo "<TR><TD><B>{$t['sonst12']}</B></TD>";
            echo "<TD>" . $f1 . "<INPUT TYPE=\"TEXT\" NAME=\"ip1\" " . "VALUE=\"{$ip1}\" SIZE=3 maxlength=3><B>.</B>" . "<INPUT TYPE=\"TEXT\" NAME=\"ip2\" " . "VALUE=\"{$ip2}\" SIZE=3 maxlength=3><B>.</B>" . "<INPUT TYPE=\"TEXT\" NAME=\"ip3\" " . "VALUE=\"{$ip3}\" SIZE=3 maxlength=3><B>.</B>" . "<INPUT TYPE=\"TEXT\" NAME=\"ip4\" " . "VALUE=\"{$ip4}\" SIZE=3 maxlength=3>" . $f2 . "</TD></TR>\n";
            echo "<TR><TD><B>{$t['sonst22']}</B></TD><TD>" . $f1 . "<SELECT NAME=\"f[is_warn]\">";
            if (isset($f['is_warn']) && $f['is_warn'] == "ja") {
                echo "<OPTION SELECTED VALUE=\"ja\">{$t['sonst20']}";
                echo "<OPTION VALUE=\"nein\">{$t['sonst21']}";
            } else {
                echo "<OPTION VALUE=\"ja\">{$t['sonst20']}";
                echo "<OPTION SELECTED VALUE=\"nein\">{$t['sonst21']}";
            }
            echo "</SELECT>&nbsp;&nbsp;&nbsp;" . "<B><INPUT TYPE=\"SUBMIT\" VALUE=\"{$t['sonst13']}\" NAME=\"eintragen\"></B>\n" . $f2 . "</TD></TR>\n";
            echo "</TABLE>\n";
            echo "</TD></TR></TABLE></TD></TR></TABLE>\n";
            echo "</FORM>\n";
            // Liste ausgeben
            liste();
            break;
        default:
            // Liste ausgeben
            liste();
    }
} else {
    echo "<P ALIGN=CENTER>{$t['sonst16']}</P>\n";
}
if ($o_js) {
    echo $f1 . "<P ALIGN=CENTER>[<A HREF=\"javascript:window.close();\">{$t['sonst1']}</A>]</P>" . $f2 . "\n";
}
?>

</BODY></HTML>
Пример #3
0
        <button id="b1" type="submit" name="insert" onclick="return confirm('Bu kitabı almak istediğinize emin misiniz ?')" 
         class="pure-button pure-button-primary">Onayla</button>
    </fieldset>
    </form>
<h2>Okumak istediğiniz kitabı aşağıdaki listeden seçip formu doldurunuz.</h2>    
<p>Not:Her öğrenci aldığı toplam sayfanın yarısı kadarını okuyacaktır.Alınan kitaplar tekrardan alınamaz.</p>   

<table id="mytable" cellspacing="0">
				<h3>Kitap Listesi</h3>
				<tr>
				  <th scope="col" >KITAP ADI</th>
				  <th scope="col" >YAZAR</th>
				  <th scope="col" >SAYFA</th>
				</tr>	
<?php 
echo liste();
?>
<table id="mytable" cellspacing="0">
				<h3>Alınan kitaplar</h3>
				<tr>
				  <th scope="col" >KITAP ADI</th>
				  <th scope="col" >YAZAR</th>
				  <th scope="col" >SAYFA</th>
				  <th scope="col" >ÖĞRENCİLER</th>
				</tr>	
<?php 
echo Aliste();
?>
 
</div>
</body>
Пример #4
0
                         <input class="form-control" type="text" value="' . $ligne[0] . '" disabled />
                     </div>
                     <div class="form-group">
                         <label>Ajouté par :</label>
                         <input class="form-control" type="text" value="' . $admin . '" disabled />
                     </div>
                     <div class="form-group">
                         <label>S\'applique à :</label>
                         <select class="form-control" name="user">' . utilisateurs($ligne[1]) . '</select>
                     </div>
                     <div class="form-group">
                         <label>URL :</label>
                         <input class="form-control" type="text" name="url" value=' . $ligne[3] . ' />
                     </div>
                     <div class="form-group">
                         <label>Liste :</label><br>' . liste($ligne[0]) . '</div>
                     <div class="form-group">
                         <label>Restriction par domaine :</label>' . domaineRestriction($ligne[0]) . '</div>
                     <div class="modal-footer">
                       <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
                       <button type="submit" class="btn btn-primary">Modifier</button>
                     </div>
                 </form>
             </div>
           </div>
         </div>
       </div>';
 echo '<div class="modal fade" id="supprSite' . $ligne[0] . '" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
         <div class="modal-dialog" role="document">
           <div class="modal-content">
             <div class="modal-header">
Пример #5
0
                                      
                                      </div>
                                    </div>';
if (isset($_POST['modifier'])) {
    $listeEntreprise = Connexion::table('SELECT organisation.libelle FROM organisation');
    $listeSecteur = Connexion::table('SELECT utilisateurtype.label FROM utilisateurtype');
    //var_dump($listeEntreprise);
    //var_dump($_POST['entreprise']);
    foreach ($utilisateurs as $u) {
        /*echo '$post';
          var_dump($_POST['login']);
          echo '$u';
          var_dump($u['login']);
          echo 'fin';*/
        if ($_POST['login'] == $u['login']) {
            echo '<form method="POST" action="?route=kernel_utilisateur_liste"><tr>' . '<td><input type="text" value="' . $u['login'] . '"/></td>' . '<td><input type="text" value=""/></td>' . '<td>' . liste($listeSecteur, "secteur", "label") . '</td>' . '<td>' . liste($listeEntreprise, "entreprise", "libelle") . '</td>' . '<td><input type="hidden" name="login" value="' . $u['login'] . '"/><input type="hidden" name="secteur" value="' . $u['secteur'] . '"/><input type="hidden" name="entreprise" value="' . $u['entreprise'] . '"/><button type="submit" name="valider" class="btn btn-app"><i class="fa fa-check"></i> Valider</button></td>' . '<td><button type="submit" name="annuler" class="btn btn-app"><i class="fa fa-check"></i> Annuler </button></td>' . '</tr></form>';
        }
    }
} else {
    foreach ($utilisateurs as $u) {
        /*echo '$u';
          var_dump($u['login']);*/
        echo '<form method="POST" action="?route=kernel_utilisateur_liste"><tr>' . '<td>' . $u['login'] . '</td>' . '<td>•••••</td>' . '<td>' . $u['secteur'] . '</td>' . '<td>' . $u['entreprise'] . '</td>' . '<td><input type="hidden" name="login" value="' . $u['login'] . '"/><input type="hidden" name="secteur" value="' . $u['secteur'] . '"/><input type="hidden" name="entreprise" value="' . $u['entreprise'] . '"/><button type="submit" name="modifier" class="btn btn-app"><i class="fa fa-check"></i> Modifier </button></td>' . '<td><button type="submit" name="supprimer" class="btn btn-app"><i class="fa fa-check"></i> Supprimer </button></td>' . '</tr></form>';
    }
}
echo '';
?>
                                </tbody>
                            </table>
                        </div>
                    </div>
Пример #6
0
 </form>
</table>

<?php 
if ($url) {
    ?>

   </td><td valign="top" rowspan="2">

<?php 
}
?>

<?php 
if ($uri) {
    $liste = liste($uri);
    if (is_array($liste)) {
        print "<table border=\"1\" bordercolor=\"black\" cellspacing=\"0\">\n";
        print "<tr><th>Number</th><th>Status</th><th>Description</th><th>URL</th></tr>";
        for ($i = 0; $i < count($liste); $i++) {
            if ($i == count($liste) - 1) {
                $printTemp = $uri;
            } else {
                $procent = number_format($i * 100 / count($liste), 0, ".", "");
                $printTemp = "{$procent}% - {$liste[$i]}";
            }
            $check = check($liste[$i]);
            $code = $check[code];
            $check[contentType] ? $contentType = ereg_replace(";.*\$", "", $check[contentType]) : ($contentType = "Ukendt");
            $statCode[$code]++;
            $statContentType[$contentType]++;
        } else {
            $remise->load($PDOdb, GETPOST('id'));
            $remise->set_values($_POST);
            $remise->save($PDOdb);
            setEventMessage($langs->trans('RemiseSaved'));
            header('location:' . dol_buildpath('/remise/admin/remise.php?type=' . GETPOST('type') . '&TListTBS[lPrice][orderBy][date_maj]=DESC', 1));
        }
    case 'edit':
        $remise->load($PDOdb, GETPOST('id'));
        fiche($remise, $type, 'edit');
        break;
    case 'new':
        fiche($remise, $type, 'edit');
        break;
    default:
        liste($type);
        break;
}
function fiche(&$remise, $type, $mode)
{
    global $conf, $langs, $db;
    $page_name = "RemiseSetup";
    llxHeader('', $langs->trans($page_name));
    $linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
    print_fiche_titre($langs->trans($page_name), $linkback);
    // Configuration header
    $head = remiseAdminPrepareHead();
    dol_fiche_head($head, $type, $page_name, 0, "remise@remise");
    $form = new TFormCore('auto', 'form1', 'post');
    $form->Set_typeaff($mode);
    echo $form->hidden('type', $type);