<?php

if ($user->getId() == logged_user()->getId()) {
    set_page_title(lang('change password'));
    account_tabbed_navigation();
    account_crumbs(lang('change password'));
} else {
    set_page_title(lang('change password'));
    if ($user->getCompany()->isOwner()) {
        administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
        administration_crumbs(array(array(lang('company'), $user->getCompany()->getViewUrl()), array(lang('change password'))));
    } else {
        administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
        administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($user->getCompany()->getName(), $user->getCompany()->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('change password'))));
    }
    // if
}
// if
if ($user->canUpdateProfile(logged_user())) {
    add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl()));
}
// if
if ($user->canUpdatePermissions(logged_user())) {
    add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl()));
}
// if
?>
<form action="<?php 
echo $user->getEditPasswordUrl($redirect_to);
?>
" method="post">
Esempio n. 2
0
<?php

set_page_title($tool->getDisplayName());
administration_tabbed_navigation(ADMINISTRATION_TAB_TOOLS);
administration_crumbs(array(array(lang('administration tools'), get_url('administration', 'tools')), array($tool->getDisplayName())));
add_stylesheet_to_page('admin/massmailer.css');
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/massmailerForm.js');
?>
"></script>
<div id="massMailer">
  <form action="<?php 
echo $tool->getToolUrl();
?>
" method="post">
<?php 
tpl_display(get_template_path('form_errors'));
?>
  
    <div>
      <?php 
echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true);
?>
      <?php 
echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title'));
?>
    </div>
    
    <div>
      <?php 
Esempio n. 3
0
<?php

set_page_title(lang('load values'));
administration_tabbed_navigation('i18n');
administration_crumbs(lang('i18n'), get_url('i18n'));
add_page_action(lang('add locale'), get_url('i18n', 'add_locale', array('status' => '0')));
add_stylesheet_to_page('i18n.css');
$locale = $load_data['locale'];
?>
<h2><?php 
echo lang('locale') . ': ' . $locale->getName();
?>
</h2>
<form action="<?php 
echo $locale->getLoadValuesUrl();
?>
" method="post">
<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div>
    <?php 
echo label_tag(lang('replace'), 'loadFormReplace', false);
?>
    <?php 
echo yes_no_widget('load[replace]', 'loadFormReplace', array_var($load_data, 'replace'), lang('yes'), lang('no'));
?>
  </div>

  <div>
Esempio n. 4
0
<?php

set_page_title(lang('administration tools'));
administration_tabbed_navigation('tools');
administration_crumbs(lang('administration tools'));
if (isset($tools) && is_array($tools) && count($tools)) {
    ?>
<div id="administrationTools">
<?php 
    foreach ($tools as $tool) {
        ?>
  <div class="administrationTool">
    <div class="administrationToolName">
      <h2><a href="<?php 
        echo $tool->getToolUrl();
        ?>
"><?php 
        echo clean($tool->getDisplayName());
        ?>
</a></h2>
    </div>
    <div class="administrationToolDesc"><?php 
        echo clean($tool->getDisplayDescription());
        ?>
</div>
  </div>
<?php 
    }
    // foreach
    ?>
</div>
Esempio n. 5
0
<?php

set_page_title($category->getDisplayName());
administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION);
administration_crumbs(array(array(lang('configuration'), get_url('administration', 'configuration')), array($category->getDisplayName())));
add_stylesheet_to_page('admin/config.css');
if (isset($options) && is_array($options) && count($options)) {
    ?>
<form action="<?php 
    echo $category->getUpdateUrl();
    ?>
" method="post" onreset="return confirm('<?php 
    echo lang('confirm reset form');
    ?>
')">
  <div id="configCategoryOptions">
<?php 
    $counter = 0;
    foreach ($options as $option) {
        $counter++;
        ?>
    <div class="configCategoryOption <?php 
        echo $counter % 2 ? 'odd' : 'even';
        ?>
" id="configCategoryOption_<?php 
        echo $option->getName();
        ?>
">
      <div class="configOptionLabel"><label><?php 
        echo clean($option->getDisplayName());
        ?>
Esempio n. 6
0
<?php

// Set page title and set crumbs to index
set_page_title(lang('projects'));
administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS);
administration_crumbs(lang('projects'));
if (Project::canAdd(logged_user())) {
    add_page_action(lang('add project'), get_url('project', 'add'));
    add_page_action(lang('copy project'), get_url('project', 'copy'));
}
// if
if (isset($projects) && is_array($projects) && count($projects)) {
    ?>
<table id="projects">
  <tr>
    <th></th>
    <th><?php 
    echo lang('name');
    ?>
</th>
    <th><?php 
    echo lang('options');
    ?>
</th>
  </tr>

<?php 
    foreach ($projects as $project) {
        ?>
  <tr>
    <td class="middle">
Esempio n. 7
0
<?php

if (!$group instanceof PermissionGroup) {
    $group = new PermissionGroup();
}
set_page_title($group->isNew() ? lang('add group') : lang('edit group'));
administration_tabbed_navigation(ADMINISTRATION_TAB_GROUPS);
$genid = gen_id();
tpl_assign('genid', $genid);
?>

<form style="height:100%;background-color:white" class="internalForm" action="<?php 
echo $group->isNew() ? get_url('group', 'add') : $group->getEditUrl();
?>
" onsubmit="javascript:og.ogPermPrepareSendData('<?php 
echo $genid;
?>
');return true;" method="post">

<div class="adminAddGroup">
<div class="coInputHeader">

  <div class="coInputHeaderUpperRow">
	<div class="coInputTitle">
		<?php 
echo $group->isNew() ? lang('new group') : lang('edit group');
?>
	</div>
  </div>

  <div>
Esempio n. 8
0
<?php

set_page_title(lang('members'));
administration_tabbed_navigation(ADMINISTRATION_TAB_MEMBERS);
administration_crumbs(lang('members'));
if (User::canAdd(logged_user(), owner_company())) {
    add_page_action(array(lang('add user') => owner_company()->getAddUserUrl()));
}
// if
$this->includeTemplate(get_template_path('list_users', 'administration'));
Esempio n. 9
0
<?php

// Set page title and set crumbs to index
set_page_title(lang('upgrade'));
administration_tabbed_navigation();
administration_crumbs(lang('upgrade'));
if (is_array($versions = $versions_feed->getNewVersions(product_version())) && count($versions)) {
    ?>
<div id="availableVersions">
<?php 
    foreach ($versions as $version) {
        ?>
  <div class="availableVerion">
    <h2><a href="<?php 
        echo $version->getDetailsUrl();
        ?>
"><?php 
        echo clean($version->getSignature());
        ?>
</a></h2>
    <div class="releaseNotes"><?php 
        echo do_textile($version->getReleaseNotes());
        ?>
</div>
<?php 
        $download_links = array();
        foreach ($version->getDownloadLinks() as $download_link) {
            $download_links[] = '<a href="' . $download_link->getUrl() . '">' . clean($download_link->getFormat()) . ' (' . format_filesize($download_link->getSize()) . ')</a>';
        }
        // foreach
        ?>
Esempio n. 10
0
<?php

set_page_title(lang('time manager'));
administration_tabbed_navigation('time');
administration_crumbs(lang('time manager'));
add_page_action(lang('unbilled time'), get_url('administration', 'time', array('status' => '0')));
add_page_action(lang('billed time'), get_url('administration', 'time', array('status' => '1')));
add_page_action(lang('view by user'), get_url('user', 'time'));
add_page_action(lang('view by project'), get_url('project', 'time'));
?>

<h2><?php 
echo lang('view time by project');
?>
</h2>

<?php 
if (isset($projects) && is_array($projects) && count($projects)) {
    ?>
<table id="projects">
  <tr>
    <th class="short"></th>
    <th><?php 
    echo lang('name');
    ?>
</th>
    <th><?php 
    echo lang('unbilled');
    ?>
</th>
    <th><?php 
Esempio n. 11
0
<?php

set_page_title(lang('plugins'));
administration_tabbed_navigation(ADMINISTRATION_TAB_PLUGINS);
administration_crumbs(lang('plugins'), 'index');
add_stylesheet_to_page('project/messages.css');
if (isset($plugins) && is_array($plugins) && count($plugins)) {
    ?>
<script language="JavaScript">
  function toggleVisibility(me) {
    if (me.style.visibility=="hidden") {
      me.style.visibility="visible";
    } else {
      me.style.visibility="hidden";
    }
  }
  function toggleDisplay(me) {
    if (me.style.display=="none") {
      me.style.display="block";
    } else {
      me.style.display="none";
    }
  }
</script>
<div id="plugins">
  <form action="<?php 
    echo get_url('administration', 'update_plugins');
    ?>
" method="post">
  <fieldset>
    <legend><?php 
Esempio n. 12
0
<?php

// Set page title and set crumbs to index
set_page_title(lang('upgrade'));
administration_tabbed_navigation(ADMINISTRATION_TAB_UPGRADE);
administration_crumbs(lang('upgrade'));
if (is_array($versions = $versions_feed->getNewVersions(product_version())) && count($versions)) {
    ?>
<div id="availableVersions">
<?php 
    foreach ($versions as $version) {
        ?>
  <div class="availableVerion">
    <h2><a href="<?php 
        echo $version->getDetailsUrl();
        ?>
"><?php 
        echo clean($version->getSignature());
        ?>
</a></h2>
    <div class="releaseNotes"><?php 
        echo do_textile($version->getReleaseNotes());
        ?>
</div>
<?php 
        $download_links = array();
        foreach ($version->getDownloadLinks() as $download_link) {
            $download_links[] = '<a href="' . $download_link->getUrl() . '">' . clean($download_link->getFormat()) . ' (' . format_filesize($download_link->getSize()) . ')</a>';
        }
        // foreach
        ?>