1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <?php
use classes\Ticket\Ticket;
include(dirname(__DIR__).DIRECTORY_SEPARATOR."config".DIRECTORY_SEPARATOR."config.php");
include(DIR_ROOT."classes".DIRECTORY_SEPARATOR."Ticket.php");
$tic=new Ticket();
$meth=['Clean_Dbb','Csv_To_Db'];
?>
<html>
<body>
<form method="post" action="" onchange="submit();">
<select name="meth" id="">
<option value="0">list of methods</option>
<?php
foreach($meth as $met) {
echo "<option value='".$met."'>".$met."</option>";
}
?>
</select>
</form>
</body>
</html>
<?php
if (isset($_POST['meth']))
{
if ($_POST['meth']!="0") {
?>
<a href='<?php $tic->$met;?>() target="_blank"'><?=$met ?></a>
<?php
}
}
?> |
Partager