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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
| <?php require_once('Connections/conn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_conn, $conn);
$query_ate_photos = "SELECT * FROM ate_photos ORDER BY ordre ASC";
$ate_photos = mysql_query($query_ate_photos, $conn) or die(mysql_error());
$row_ate_photos = mysql_fetch_assoc($ate_photos);
$totalRows_ate_photos = mysql_num_rows($ate_photos);
mysql_select_db($database_conn, $conn);
$query_atelier = "SELECT * FROM atelier";
$atelier = mysql_query($query_atelier, $conn) or die(mysql_error());
$row_atelier = mysql_fetch_assoc($atelier);
$totalRows_atelier = mysql_num_rows($atelier);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/site.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>martin jakob</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript" src="gallery/jquery.min.js"></script>
<script type="text/javascript" src="gallery/jquery.gallery.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#showcase").awShowcase(
{
content_width: 600,
content_height: 400,
fit_to_parent: false,
auto: false,
interval: 0,
continuous: false,
loading: true,
arrows: true,
buttons: false,
btn_numbers: false,
keybord_keys: true,
mousetrace: false, /* coordonnées x et y de la souris */
pauseonover: true,
stoponclick: false,
transition: 'slide', /* hslide/vslide/fade slide vertical ou horizontal*/
transition_delay: 0,
transition_speed: 1,
show_caption: 'onload', /* onload/onhover/show message sur image */
dynamic_height: false, /* Pour la hauteur dynamique, écrire la hauteur et la largeur de l'image dans la source. */
speed_change: true, /* Prévenir le switch des images si l'utilisateur change très vite */
});
});
</script>
<!-- InstanceEndEditable -->
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="conteneur">
<table id="tablecontenu">
<tr>
<td>
<div id="menu">
<br/>
<table id="tablemenu">
<tr>
<td>
<a href="index.php">martin jakob</a></td>
<td>
- - - - - - - - - - - - - - - - - - - - - - - - - </td>
<td>
<a href="news.php">news</a> -
<a href="travaux.php">travaux</a> -
<a href="atelier.php">atelier</a> -
<a href="textes.php">textes</a> -
<a href="infos.php">infos</a> -
<a href="liens.php">liens</a>
</td>
</tr>
</table>
<br/>
<br/>
</div>
<div id="submenu">
<!-- InstanceBeginEditable name="submenu" -->
atelier
<br /><br /><br />
<!-- InstanceEndEditable -->
</div>
<div id="corps">
<!-- InstanceBeginEditable name="corps" -->
<?php if ($totalRows_ate_photos > 0) { // Show if recordset not empty ?>
<div id="showcase" class="showcase">
<!-- Each child div in #showcase represents a slide -->
<!-- Each child div in #showcase represents a slide -->
<?php do { ?>
<div class="showcase-slide">
<!-- Put the slide content in a div with the class .showcase-content. -->
<div class="showcase-content">
<left><?php echo '<img src="gallery/images/big_'.$row_ate_photos['photo'].'"/>'; ?></left>
</div>
</div>
<?php } while ($row_ate_photos = mysql_fetch_assoc($ate_photos)); ?>
</div>
<?php } // Show if recordset not empty ?>
<div id="subcorps">
<br />
<br />
<table border="0">
<tr>
<td><?php echo $row_atelier['description']; ?></td>
</tr>
</table>
</div>
<!-- InstanceEndEditable -->
</div>
</td>
</tr>
</table>
<div id="footer">
<br/>
<br/>
<br/>
<a href="mailto:kdidot@gmail.com">Copyright © 2013 Kévin Didot</a>
</div>
</div>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.martinjakob.ch/admin/piwik/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "1"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
<!-- Piwik Image Tracker -->
<noscript><img src="http://www.martinjakob.ch/admin/piwik/piwik.php?idsite=1&rec=1&action_name=atelier" style="border:0" alt="" /></noscript>
<!-- End Piwik -->
</body>
</html>
<?php
mysql_free_result($ate_photos);
mysql_free_result($atelier);
?> |
Partager