parent
ec7df01f4f
commit
20e964ae31
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class GatewayConfigAdmin
|
||||||
|
{
|
||||||
|
private $con;
|
||||||
|
|
||||||
|
public function __construct($con){
|
||||||
|
$this->con = $con;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getConfigAdmin($idConfig)
|
||||||
|
{
|
||||||
|
$query = "SELECT * FROM configadmin WHERE :idConfig;";
|
||||||
|
$this->con->executeQuery($query, array(':idConfig' => array($idConfig, PDO::PARAM_STR)));
|
||||||
|
$results=$this->con->getResults();
|
||||||
|
return $results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function updateConfigAdmin($idConfig,$value)
|
||||||
|
{
|
||||||
|
$query = "UPDATE configadmin SET value = :value WHERE idconfig = :idConfig;";
|
||||||
|
$this->con->executeQuery($query, array(':value' => array($value,PDO::PARAM_STR),
|
||||||
|
':idConfig' => array($idConfig,PDO::PARAM_STR)));
|
||||||
|
$results=$this->con->getResults();
|
||||||
|
return $results;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -1,26 +1,38 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<link href="css/administration.css" rel="stylesheet" type="text/css">
|
<link href="css/administration.css" rel="stylesheet" type="text/css">
|
||||||
<html>
|
<html>
|
||||||
<form action="index.php?action=ajoutSource" method="POST">
|
<div id="pageRight">
|
||||||
<input type="text" name="linkSource" placeholder="source" />
|
<div id="listSources">
|
||||||
<input type="submit" value="add source">
|
<div>
|
||||||
</form>
|
<?php
|
||||||
</html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
foreach ($listeSources as $n){
|
foreach ($listeSources as $n){
|
||||||
echo '<form action="index.php?action=supprimerSource&idSource='.$n->getlink().'">';
|
echo '<form action="index.php?action=supprimerSource&idSource='.$n->getlink().'">';
|
||||||
echo "<div class=source>";
|
echo "<div class=source>";
|
||||||
|
echo "<div>";
|
||||||
echo "<p id=link>";
|
echo "<p id=link>";
|
||||||
echo $n->getlink();
|
echo $n->getlink();
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
|
echo "</div>";
|
||||||
|
echo "<div>";
|
||||||
echo '<input type="submit" value="x">';
|
echo '<input type="submit" value="x">';
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
echo "</div>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
<form action="index.php">
|
<div id="listSourceBottom">
|
||||||
|
<form action="../index.php?action=ajoutSource" method="POST">
|
||||||
|
<input type="text" name="linkSource" placeholder="source" />
|
||||||
|
<input type="submit" value="add source">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="refresh">
|
||||||
|
<form action="index.php">
|
||||||
<input type="hidden" name="action" value="refreshData">
|
<input type="hidden" name="action" value="refreshData">
|
||||||
<input type="submit" value="refresh">
|
<input type="submit" id="buttonRefresh" value="refresh">
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</html>
|
Loading…
Reference in new issue