@@ -1,5 +1,7 @@ discard block |
||
| 1 | 1 | <?php // BEGIN PHP |
| 2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
| 2 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
| 3 | + $websitepagefile=__FILE__; |
|
| 4 | +} |
|
| 3 | 5 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
| 4 | 6 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
| 5 | 7 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
@@ -26,7 +28,10 @@ discard block |
||
| 26 | 28 | <!-- Include link to JS file --> |
| 27 | 29 | <script async src="/javascript.js.php"></script> |
| 28 | 30 | <!-- Include HTML header from common file --> |
| 29 | -<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?> |
|
| 31 | +<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) { |
|
| 32 | + include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; |
|
| 33 | +} |
|
| 34 | +?> |
|
| 30 | 35 | <!-- Include HTML header from page header block --> |
| 31 | 36 | |
| 32 | 37 | </head> |
@@ -66,7 +71,9 @@ discard block |
||
| 66 | 71 | $MAXNB=10; |
| 67 | 72 | $sql='SELECT rowid FROM '.MAIN_DB_PREFIX.'user WHERE statut = 1 and fk_soc IS NULL ORDER BY fk_user DESC LIMIT '.$MAXNB; |
| 68 | 73 | $resql = $db->query($sql); |
| 69 | - if (! $resql) dol_print_error($db); |
|
| 74 | + if (! $resql) { |
|
| 75 | + dol_print_error($db); |
|
| 76 | + } |
|
| 70 | 77 | while ($obj = $db->fetch_object($resql)) |
| 71 | 78 | { |
| 72 | 79 | $arrayofusers[]=$obj->rowid; |
@@ -80,16 +87,23 @@ discard block |
||
| 80 | 87 | print '<div class="col-sm-8 col-md-7 col-lg-4">'; |
| 81 | 88 | print '<div class="container blog-box d-xl-inline-block" style="padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">'; |
| 82 | 89 | print '<div class="post-boxed-img-wrap" style="height: 164px">'; |
| 83 | - if ($fuser->photo) print Form::showphoto('userphoto', $fuser, 100, 0, 0, 'photowithmargin', '', 0); |
|
| 90 | + if ($fuser->photo) { |
|
| 91 | + print Form::showphoto('userphoto', $fuser, 100, 0, 0, 'photowithmargin', '', 0); |
|
| 92 | + } |
|
| 84 | 93 | //print '<img class="img-circle" src="/viewimage.php?modulepart=userphoto&file='.$fuser->photo.'" width="129" height="129" alt="">'; |
| 85 | - else print '<img class="img-circle" src="/viewimage.php?modulepart=medias&file=image/template-corporate/daviddoe.png" width="129" height="129" alt="">'; |
|
| 94 | + else { |
|
| 95 | + print '<img class="img-circle" src="/viewimage.php?modulepart=medias&file=image/template-corporate/daviddoe.png" width="129" height="129" alt="">'; |
|
| 96 | + } |
|
| 86 | 97 | print '</div>'; |
| 87 | 98 | print '<div class="post-boxed-caption">'; |
| 88 | 99 | print '<div class="post-boxed-title font-weight-bold">'.$fuser->firstname.'</div>'; |
| 89 | 100 | print '<ul class="list-inline list-inline-dashed text-uppercase">'; |
| 90 | 101 | //print '<li>September 24, 2018</li>'; |
| 91 | - if ($fuser->job) print '<li><span class="text-primary">'.$fuser->job.'</span></li>'; |
|
| 92 | - else print '<li></li>'; |
|
| 102 | + if ($fuser->job) { |
|
| 103 | + print '<li><span class="text-primary">'.$fuser->job.'</span></li>'; |
|
| 104 | + } else { |
|
| 105 | + print '<li></li>'; |
|
| 106 | + } |
|
| 93 | 107 | print '</ul>'; |
| 94 | 108 | print '</div>'; |
| 95 | 109 | print '</div>'; |
@@ -1,5 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page194.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page194.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page194.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page194.tpl.php'; |
|
| 8 | +} |
|
| 5 | 9 | ?> |
@@ -1,4 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page126.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page126.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page126.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page126.tpl.php'; |
|
| 8 | +} |
|
@@ -1,5 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page193.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page193.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page193.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page193.tpl.php'; |
|
| 8 | +} |
|
| 5 | 9 | ?> |
@@ -1,6 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // BEGIN PHP File generated to provide an index.php as Home Page or alias redirector - DO NOT MODIFY - It is just a generated wrapper. |
| 3 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
| 3 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
| 4 | + $websitepagefile=__FILE__; |
|
| 5 | +} |
|
| 4 | 6 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load master if not already loaded |
| 5 | 7 | if (!empty($_GET['pageref']) || !empty($_GET['pagealiasalt']) || !empty($_GET['pageid'])) { |
| 6 | 8 | require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; |
@@ -1,5 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page182.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page182.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page182.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page182.tpl.php'; |
|
| 8 | +} |
|
| 5 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page179.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page179.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page179.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page179.tpl.php'; |
|
| 8 | +} |
|
| 5 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page192.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page192.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page192.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page192.tpl.php'; |
|
| 8 | +} |
|
| 5 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
| 3 | 3 | global $dolibarr_main_data_root; |
| 4 | -if (empty($dolibarr_main_data_root)) require './page191.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page191.tpl.php'; |
|
| 4 | +if (empty($dolibarr_main_data_root)) { |
|
| 5 | + require './page191.tpl.php'; |
|
| 6 | +} else { |
|
| 7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page191.tpl.php'; |
|
| 8 | +} |
|
| 5 | 9 | ?> |