Esempio n. 1
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 
        }
    }
Esempio n. 2
0
        ?>
    <li><?php 
        echo dhLang('Ingrese su nombre de usuario.');
        ?>
</li>
<?php 
    }
    ?>
  </ul>
</div>
<?php 
}
?>
<div class="clear-block">
  <form action="<?php 
echo dhUrl('lostpassword');
?>
" method="post">
    <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 
Esempio n. 3
0
        ?>
    <li><?php 
        echo dhLang('Ingrese un Nombre de Red.');
        ?>
</li>
<?php 
    }
    ?>
  </ul>
</div>
<?php 
}
?>
<div class="clear-block">
  <form action="<?php 
echo dhUrl('networks', array('action' => 'add'));
?>
" method="post">
    <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 
Esempio n. 4
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');
Esempio n. 5
0
function dhRedirect($action, $params = array())
{
    header("Location: " . dhUrl($action, $params));
}
Esempio n. 6
0
</li>
<?php 
        }
        ?>
  </ul>
</div>
<?php 
    }
    ?>
<div class="clear-block">
<?php 
    $networks = dhNetworks();
    foreach ($networks as $network) {
        ?>
  <a href="<?php 
        echo dhUrl('networks', array('n' => $network['id_networks']));
        ?>
" class="network">
    <img src="/themes/garland/images/network.png" alt="<?php 
        echo $network['netname'];
        ?>
" />
    <label><?php 
        echo $network['netname'];
        ?>
</label>
  </a>
<?php 
    }
    ?>
</div>
Esempio n. 7
0
        ?>
    <li><?php 
        echo sprintf(dhLang('Clave incorrecta, proporciono %s de usuario.'), dhPost('name'));
        ?>
</li>
<?php 
    }
    ?>
  </ul>
</div>
<?php 
}
?>
<div class="clear-block">
  <form action="<?php 
echo dhUrl('login');
?>
" method="post">
    <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 
Esempio n. 8
0
        ?>
    <li><?php 
        echo dhLang('Ingrese un Nombre de Red.');
        ?>
</li>
<?php 
    }
    ?>
  </ul>
</div>
<?php 
}
?>
<div class="clear-block">
  <form action="<?php 
echo dhUrl('networks', array('n' => $network['id_networks'], 'action' => 'edit'));
?>
" method="post">
    <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 
Esempio n. 9
0
        ?>
    <li><?php 
        echo dhLang('Responda la pregunta.');
        ?>
</li>
<?php 
    }
    ?>
  </ul>
</div>
<?php 
}
?>
<div class="clear-block">
  <form action="<?php 
echo dhUrl('register');
?>
" method="post">
    <div>
      <div id="edit-fullname-wrapper" class="form-item">
        <label for="edit-fullname"><?php 
echo dhLang('Nombre Completo:');
?>
<span class="form-required" title="<?php 
echo dhLang('Este campo es requerido.');
?>
">*</span></label>
        <input type="text" id="edit-fullname" name="fullname" class="form-text required<?php 
echo dhNValid('fullname') ? ' error' : '';
?>
" maxlength="90" size="60" value="<?php