Exemple #1
0
function dhMenu()
{
    if (dhIsLogin()) {
        $menu = array();
        $netmenu = array('label' => dhLang('Redes'), 'url' => 'networks', 'items' => array(array('label' => dhLang('Agregar'), 'url' => 'networks', 'params' => array('action' => 'add'))));
        $networks = dhNetworks();
        foreach ($networks as $network) {
            $netmenu['items'][] = array('label' => $network['netname'], 'url' => 'networks', 'params' => array('n' => $network['id_networks']));
        }
        $menu[] = $netmenu;
        $menu[] = array('label' => dhLang('Perfil'), 'url' => 'profile');
        return $menu;
    }
    return array();
}
Exemple #2
0
    function headerMenu($items, $ul = true)
    {
        if ($ul) {
            ?>
              <ul class="menu">
<?php 
        }
        foreach ($items as $item) {
            ?>
                <li class="<?php 
            echo !isset($item['items']) ? 'leaf' : (dhIsUrl($item['url'], $item['params']) ? 'expanded' : 'collapsed');
            echo dhIsUrl($item['url'], $item['params']) ? ' active-trail' : '';
            ?>
">
                  <a href="<?php 
            echo dhUrl($item['url'], $item['params']);
            ?>
"<?php 
            echo dhIsUrl($item['url'], $item['params']) ? ' class="active"' : '';
            ?>
><?php 
            echo dhLang($item['label']);
            ?>
</a>
<?php 
            if (isset($item['items']) && (dhIsUrl($item['url'], $item['params']) || dhIsUrlArray($item['items']) !== false)) {
                headerMenu($item['items']);
            }
            ?>
                </li>
<?php 
        }
        if ($ul) {
            ?>
              </ul>
<?php 
        }
    }
Exemple #3
0
    <div>
      <div id="edit-name-wrapper" class="form-item">
        <label for="edit-name"><?php 
echo dhLang('Nombre de Usuario:');
?>
<span class="form-required" title="<?php 
echo dhLang('Este campo es requerido.');
?>
">*</span></label>
        <input type="text" id="edit-name" name="name" class="form-text required<?php 
echo dhNValid('name') ? ' error' : '';
?>
" maxlength="60" size="60" value="<?php 
echo dhPost('name');
?>
" />
        <div class="description"><?php 
echo dhLang('Ingrese su nombre de usuario.');
?>
</div>
      </div>
      <input type="submit" class="form-submit" value="<?php 
echo dhLang('Recuperar Clave');
?>
" />
    </div>
  </form>
</div>

<?php 
dhTheme('footer');
Exemple #4
0
    <div>
      <div id="edit-netname-wrapper" class="form-item">
        <label for="edit-netname"><?php 
echo dhLang('Nombre de Red:');
?>
<span class="form-required" title="<?php 
echo dhLang('Este campo es requerido.');
?>
">*</span></label>
        <input type="text" id="edit-netname" name="netname" class="form-text required<?php 
echo dhNValid('netname') ? ' error' : '';
?>
" maxlength="90" size="60" value="<?php 
echo dhPost('netname');
?>
" />
        <div class="description"><?php 
echo dhLang('Ej: WORKGROUP.');
?>
</div>
      </div>
      <input type="submit" class="form-submit" value="<?php 
echo dhLang('Agregar Red');
?>
" />
    </div>
  </form>
</div>

<?php 
dhTheme('footer');
Exemple #5
0
<?php

dhTheme('header');
?>

<div class="breadcrumb"><a href="<?php 
echo dhUrl('index');
?>
"><?php 
echo dhLang('Principal');
?>
</a></div>
<div id="tabs-wrapper" class="clear-block">
  <h2 class="with-tabs">Front-Page</h2>
  <ul class="tabs primary">
    <li class="active"><a href="#">Tab 0</a></li>
    <li><a href="#">Tab 1</a></li>
  </ul>
</div>
<div class="clear-block">

</div>

<?php 
dhTheme('footer');
Exemple #6
0
echo dhUrl('register');
?>
"><?php 
echo dhLang('Registrese');
?>
</a></li>
    <li><a href="<?php 
echo dhUrl('login');
?>
"><?php 
echo dhLang('Ingresar');
?>
</a></li>
    <li><a href="<?php 
echo dhUrl('lostpassword');
?>
"><?php 
echo dhLang('Recuperar Clave');
?>
</a></li>
  </ul>
</div>
<div class="clear-block">
  <p><?php 
echo sprintf(dhLang('Felicitaciones. Ya se encuentra registrado como %s.'), dhGet('name'));
?>
</p>
</div>

<?php 
dhTheme('footer');
Exemple #7
0
            ?>
</li>
<?php 
        }
        if (dhHasGet('edit')) {
            ?>
    <li><?php 
            echo sprintf(dhLang('Se modifico la Red %s exitosamente.'), urldecode(dhGet('edit')));
            ?>
</li>
<?php 
        }
        if (dhHasGet('delete')) {
            ?>
    <li><?php 
            echo sprintf(dhLang('Se elimino la Red %s exitosamente.'), urldecode(dhGet('delete')));
            ?>
</li>
<?php 
        }
        ?>
  </ul>
</div>
<?php 
    }
    ?>
<div class="clear-block">
<?php 
    $networks = dhNetworks();
    foreach ($networks as $network) {
        ?>
Exemple #8
0
                  <div id="footer">
                  <div class="clear-block block block-system">
                    <div class="content">
                      Copyright &copy; 2008 <a href="<?php 
echo dhUrl('index');
?>
"><?php 
echo dhConfig('siteName');
?>
</a> &#183; <?php 
echo dhLang('Desarrollado por');
?>
 <a href="http://bundleweb.com.ar" title="Software as a Service">Bundle Software</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
Exemple #9
0
echo dhLang('Ingrese su nombre de usuario.');
?>
</div>
      </div>
      <div id="edit-pass-wrapper" class="form-item">
        <label for="edit-pass"><?php 
echo dhLang('Clave:');
?>
<span class="form-required" title="<?php 
echo dhLang('Este campo es requerido.');
?>
">*</span></label>
        <input type="password" id="edit-pass" name="pass" class="form-text required<?php 
echo dhNValid('pass') ? ' error' : '';
?>
" maxlength="128" size="60" />
        <div class="description"><?php 
echo dhLang('Ingrese la clave relacionada a su nombre de usuario.');
?>
</div>
      </div>
      <input type="submit" class="form-submit" value="<?php 
echo dhLang('Ingresar');
?>
" />
    </div>
  </form>
</div>

<?php 
dhTheme('footer');
Exemple #10
0
?>
<span class="form-required" title="<?php 
echo dhLang('Este campo es requerido.');
?>
">*</span></label>
        <input type="text" id="edit-netname" name="netname" class="form-text required<?php 
echo dhNValid('netname') ? ' error' : '';
?>
" maxlength="90" size="60" value="<?php 
echo $network['netname'];
?>
" />
        <div class="description"><?php 
echo dhLang('Ej: WORKGROUP.');
?>
</div>
      </div>
      <input type="hidden" class="form-hidden" name="netid" id="hidden-netid" value="<?php 
echo $network['id_networks'];
?>
" />
      <input type="submit" class="form-submit" value="<?php 
echo dhLang('Editar Red');
?>
" />
    </div>
  </form>
</div>

<?php 
dhTheme('footer');
Exemple #11
0
      </div>
      <div id="edit-anwser-wrapper" class="form-item">
        <label for="edit-anwser"><?php 
echo dhLang('Respuesta:');
?>
<span class="form-required" title="<?php 
echo dhLang('Este campo es requerido.');
?>
">*</span></label>
        <input type="text" id="edit-anwser" name="anwser" class="form-text required<?php 
echo dhNValid('anwser') ? ' error' : '';
?>
" maxlength="255" size="60" value="<?php 
echo dhPost('anwser');
?>
" />
        <div class="description"><?php 
echo dhLang('Respuesta a la pregunta anterior.');
?>
</div>
      </div>
      <input type="submit" class="form-submit" value="<?php 
echo dhLang('Registrese');
?>
" />
    </div>
  </form>
</div>

<?php 
dhTheme('footer');