widget.configure.php 1.2 KB

1234567891011121314151617181920212223
  1. <?php
  2. User::check_access('document','configure');
  3. $treepanel = $widget->data('widget-document-tree');
  4. $treepanel = $treepanel =="" ? 0 : $treepanel ;
  5. $detailpanel = $widget->data('widget-document-detail');
  6. $detailpanel = $detailpanel =="" ? 0 : $detailpanel ;
  7. $searchpanel = $widget->data('widget-document-search');
  8. $searchpanel = $searchpanel =="" ? 0 : $searchpanel ;
  9. ?>
  10. <div id="document-widget-form">
  11. <label><input type="checkbox" data-type="checkbox" <?php echo $treepanel==1 ? 'checked="checked"' : '' ; ?> id="widget-document-tree"> Afficher le panneau arborescence</label><br>
  12. <label><input type="checkbox" data-type="checkbox" <?php echo $detailpanel==1 ? 'checked="checked"' : '' ; ?> id="widget-document-detail"> Afficher le panneau détail</label><br>
  13. <label><input type="checkbox" data-type="checkbox" <?php echo $searchpanel==1? 'checked="checked"' : '' ; ?> id="widget-document-search"> Afficher le panneau recherche</label>
  14. <label>Afficher le chemin relatif suivant :</label>
  15. <small class="text-muted">ex : dossier1/sous dossier</small>
  16. <input type="text" class="form-control" value="<?php echo $widget->data('widget-document-root'); ?>" id="widget-document-root">
  17. </div>