コード例 #1
0
 foreach ($quizzes as $quiz) {
     $hasRecords = count_records('quiz_course_activation', 'courseid', $course->id, 'quizid', $quiz->id);
     echo "<table class='grades boxwidthwide boxaligncenter generalbox' border='0' cellpadding='5' cellspacing='5' width='1000px'>";
     if ($hasRecords > 0) {
         echo "<caption>{$quiz->name}</caption>";
         printGradeTableHead();
         // 12 columns total
         echo "<tfoot>";
         echo "<tr>";
         if (!empty($param->edit) && $quiz->id == $param->edit) {
             echo "<td colspan='6'><a href='{$CFG->wwwroot}/'><font color='black'>Return to Main</font></a> | ";
             echo "<a href='{$CFG->wwwroot}/question/grades.php?courseid={$course->id}'>Cancel</a>";
             echo "</td>";
             echo "<td colspan='6'>";
             $options = array('courseid' => $course->id, 'quizid' => $quiz->id, 'savegrades' => true);
             print_button('Save Grades', $options);
             echo "</td>";
         } else {
             if ($param->savegrades && $param->quizid == $quiz->id) {
                 echo "<td colspan='6'>";
                 echo "<a href='{$CFG->wwwroot}/'><font color='black'>Return to Main</font></a> | ";
                 echo "<a href='{$CFG->wwwroot}/question/grades.php?courseid={$course->id}&edit={$quiz->id}'>Edit Grades</a>";
                 echo "</td>";
                 echo "<td colspan='6'>";
                 if ($form = data_submitted()) {
                     $count = saveGradeRecords($form, $quiz->id, $course->id);
                     if ($count) {
                         echo "<font color='green'>{$count} Saved.</font>";
                     } else {
                         echo "<font color='red'>Grades could not be saved.</font>";
                     }
コード例 #2
0
			</td>
		</tr>
<?php 
}
# end for
?>
	<tr>
	<td>&nbsp;  </td>
	<td>&nbsp;  </td>
	<td>&nbsp;  </td>
	<td class="center">
	<?php 
# You need global or project-specific permissions to remove users
#  from this project
if (!$f_show_global_users) {
    print_button("manage_proj_edit_page.php?project_id={$f_project_id}&show_global_users=true", lang_get('show_global_users'));
} else {
    print_button("manage_proj_edit_page.php?project_id={$f_project_id}", lang_get('hide_global_users'));
}
if ($t_removable_users_exist) {
    echo '&nbsp;';
    print_button("manage_proj_user_remove.php?project_id={$f_project_id}", lang_get('remove_all_link'));
}
?>
	</td>
	</tr>
	</table>
</div>

<?php 
html_page_bottom();
コード例 #3
0
 $table->class = 'search-table';
 $table->style = array();
 $table->style[0] = 'font-weight: bold;';
 $table->data = array();
 $table->data[0][0] = print_input_text("search_text", $search_text, "", 15, 100, true, __('Search'));
 $params = array();
 $params['input_id'] = 'id_company';
 $params['input_name'] = 'id_company';
 $params['input_value'] = $id_company;
 $params['title'] = __('Company');
 $params['return'] = true;
 $table->data[0][1] = print_company_autocomplete_input($params);
 $table->data[0][2] = print_submit_button(__('Search'), "search_btn", false, 'class="sub search"', true);
 // Delete new lines from the string
 $where_clause = str_replace(array("\r", "\n"), '', $where_clause);
 $table->data[0][3] = print_button(__('Export to CSV'), '', false, 'window.open(\'include/export_csv.php?export_csv_contacts=1&where_clause=' . str_replace("'", "\\'", $where_clause) . '\')', 'class="sub csv"', true);
 echo '<form id="contact_search_form" method="post">';
 print_table($table);
 echo '</form>';
 $contacts = crm_get_all_contacts($where_clause);
 $contacts = print_array_pagination($contacts, "index.php?sec=customers&sec2=operation/contacts/contact_detail&params={$search_params}", $offset);
 if ($contacts !== false) {
     unset($table);
     $table->width = "99%";
     $table->class = "listing";
     $table->data = array();
     $table->size = array();
     $table->size[3] = '40px';
     $table->style = array();
     // $table->style[] = 'font-weight: bold';
     $table->head = array();
コード例 #4
0
$result = db_query($query);
$user_count = db_num_rows($result);
?>
<br />
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title" colspan="5">
		<?php 
echo lang_get('manage_accounts_title');
?>
 [<?php 
echo $user_count;
?>
]
		<?php 
print_button('manage_user_create_page.php', lang_get('create_new_account_link'));
?>
	</td>
	<td class="center" colspan="2">
		<form method="post" action="manage_user_page.php">
		<input type="hidden" name="sort" value="<?php 
echo $c_sort;
?>
" />
		<input type="hidden" name="dir" value="<?php 
echo $c_dir;
?>
" />
		<input type="hidden" name="save" value="1" />
		<input type="checkbox" name="hide" value="1" <?php 
check_checked($c_hide, 1);
コード例 #5
0
		//offset pagination hidden
		if(!isset($params['offset'])){
			$params['offset'] = '';
		}
		$table_search->data[3][0] .= print_input_hidden	('offset', $params['offset'], true, false, 'offset');
		
		//mode: list, tree, pure
		$table_search->data[3][0] .= print_input_hidden ('mode', $params['mode'], true, false, 'mode');

		//csv querys
		$filter["query"] = $sql_search;
		$filter["query_pag"] = $sql_search_pagination;
		serialize_in_temp($filter, $config["id_user"]);
		
		//tree_search_submit()
		$table_search->data[3][1] = print_button(__('Export to CSV'), '', false, 'tree_search_submit(); window.open(\'' . 'include/export_csv.php?export_csv_inventory=1'.'\');', 'class="sub csv"', true);

		//button
		$table_search->data[3][2] = print_submit_button (__('Search'), 'search', false, 'class="sub search"', true);

		$search_other .= print_table($table_search, true);
		$search_other .= '</div>';
		
		print_container_div("inventory_form",__("Inventory form search"),$search_other, 'open', false, false);
	echo '</form>';
}

$write_permission = enterprise_hook ('inventory_check_acl', array ($config['id_user'], $id, true));	
$page = (int)get_parameter('page', 1);

switch ($mode) {
コード例 #6
0
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title" colspan="5">
		<?php 
echo lang_get('manage_accounts_title');
?>
 [<?php 
echo $total_user_count;
?>
]
		<?php 
print_button('manage_user_create_page.php', lang_get('create_new_account_link'));
?>
		<?php 
if ($f_filter === 'UNUSED') {
    echo print_button('manage_user_prune.php', lang_get('prune_accounts'));
}
?>
	</td>
	<td class="center" colspan="3">
		<form method="post" action="manage_user_page.php">
		<?php 
# CSRF protection not required here - form does not result in modifications
?>
		<input type="hidden" name="sort" value="<?php 
echo $c_sort;
?>
" />
		<input type="hidden" name="dir" value="<?php 
echo $c_dir;
?>
コード例 #7
0
ファイル: lead_files.php プロジェクト: articaST/integriaims

		// Create record in tattachment
		
	}
}


// Control to upload file


echo '<div class="divform">';
echo '<table class="search-table">';
echo '<tr>';
echo '<td>';
echo print_button (__('Upload a new file'), 'add_link', false, '$(\'#upload_div\').slideToggle (); return false', 'class="sub upload"');

echo '<div id="upload_div" style="display: none;" class="">';
$target_directory = 'attachment';
$action = "index.php?sec=customers&sec2=operation/leads/lead_detail&id=$id&op=files&upload=1";				
$into_form = "<input type='hidden' name='directory' value='$target_directory'><b>Description</b>&nbsp;<input type=text name=description size=20>";
print_input_file_progress($action,$into_form,'','sub upload');
echo '</td>';
echo '</tr>';
echo '</table>';
echo '</div>';

// List of lead attachments

$sql = "SELECT * FROM tattachment WHERE id_lead = $id ORDER BY timestamp DESC";
$files = get_db_all_rows_sql ($sql);	
コード例 #8
0
ファイル: query_view_page.php プロジェクト: gtn/mantisbt
$t_max_column_count = 2;
foreach ($t_query_arr as $t_id => $t_name) {
    if ($t_column_count == 0) {
        print '<tr>';
    }
    print '<td>';
    if (OFF != $t_rss_enabled) {
        # Use the "new" RSS link style.
        print_rss(rss_get_issues_feed_url(null, null, $t_id), lang_get('rss'));
        echo ' ';
    }
    $t_query_id = (int) $t_id;
    print_link('view_all_set.php?type=3&source_query_id=' . $t_query_id, $t_name);
    if (filter_db_can_delete_filter($t_id)) {
        echo ' ';
        print_button('query_delete_page.php?source_query_id=' . $t_query_id, lang_get('delete_query'));
    }
    print '</td>';
    $t_column_count++;
    if ($t_column_count == $t_max_column_count) {
        print '</tr>';
        $t_column_count = 0;
    }
}
# Tidy up this row
if ($t_column_count > 0 && $t_column_count < $t_max_column_count) {
    for ($i = $t_column_count; $i < $t_max_column_count; $i++) {
        print '<td>&#160;</td>';
    }
    print '</tr>';
}
コード例 #9
0
ファイル: bank_anon.php プロジェクト: smrealms/smrv2.0
            }
            echo '</td><td class="right shrink">';
            echo $db->f("amount");
            echo '</td><td class="button">';
            $container["account_num"] = $db->f("anon_id");
            $container["password"] = $db->f("password");
            print_button($container, 'Access Account');
            echo '</td></tr>';
        }
        echo '</table></div><br>';
    }
    $container = array();
    $container['url'] = 'skeleton.php';
    $container['body'] = 'bank_anon.php';
    $container['make'] = 'Yes';
    print_button($container, 'Create an account');
}
if (isset($account_num)) {
    //they didnt come from the creation screen so we need to check if the pw is correct
    $db->query('SELECT *
				FROM anon_bank
				WHERE anon_id=' . $account_num . '
				AND game_id=' . $player->game_id . ' LIMIT 1');
    if ($db->next_record()) {
        if ($var['allowed'] != 'yes') {
            if (isset($_REQUEST['pass'])) {
                $pass = $_REQUEST['pass'];
            } else {
                $pass = $var['password'];
            }
            if ($db->f('password') != $pass) {
コード例 #10
0
ファイル: bank_report.php プロジェクト: smrealms/smrv2.0
$container['body'] = 'bank_report.php';
$container['alliance_id'] = $alliance_id;
$container['text'] = $text;
if (isset($var["text"])) {
    $thread_id = 0;
    $bankReporterID = -1;
    $textInsert = addslashes($text);
    $db->query("SELECT * FROM alliance_thread_topic WHERE game_id = {$player->game_id} AND alliance_id = {$alliance_id} AND topic = 'Bank Statement' LIMIT 1");
    if ($db->next_record()) {
        $thread_id = $db->f("thread_id");
    }
    if ($thread_id == 0) {
        $db->query("SELECT * FROM alliance_thread_topic WHERE game_id = {$player->game_id} AND alliance_id = {$alliance_id} ORDER BY thread_id DESC LIMIT 1");
        if ($db->next_record()) {
            $thread_id = $db->f("thread_id") + 1;
        } else {
            $thread_id = 1;
        }
        $db->query("INSERT INTO alliance_thread_topic (game_id, alliance_id, thread_id, topic) VALUES " . "({$player->game_id}, {$alliance_id}, {$thread_id}, 'Bank Statement')");
        $db->query("INSERT INTO alliance_thread (game_id, alliance_id, thread_id, reply_id, text, sender_id, time) VALUES " . "({$player->game_id}, {$alliance_id}, {$thread_id}, 1, '{$textInsert}', {$bankReporterID}, " . time() . ")");
    } else {
        $db->query("UPDATE alliance_thread SET time = " . time() . ", text = '" . $textInsert . "' WHERE thread_id = {$thread_id} AND alliance_id = {$alliance_id} AND game_id = {$player->game_id} AND reply_id = 1");
        $db->query("DELETE FROM player_read_thread WHERE thread_id = {$thread_id} AND game_id = {$player->game_id} AND alliance_id = {$alliance_id}");
    }
    print "<div align=\"center\">A statement has been sent to the alliance.</div><br />";
} else {
    print "<div align=\"center\">";
    print_button($container, 'Send Report to Alliance');
    print "</div>";
}
print $text;
コード例 #11
0
global $config;
check_login();
$id = (int) get_parameter('id');
$incident_creator = get_db_value("id_creator", "tincidencia", "id_incidencia", $id);
if (!give_acl($config["id_user"], 0, "IW") && $config['id_user'] != $incident_creator) {
    // Doesn't have access to this page
    audit_db($config['id_user'], $config["REMOTE_ADDR"], "ACL Violation", "Trying to access to ticket #" . $id);
    include "general/noaccess.php";
    return;
}
$title = get_db_value("titulo", "tincidencia", "id_incidencia", $id);
echo '<div id="upload_result"></div>';
echo "<div id='upload_control'>";
$table->width = '100%';
$table->data = array();
$table->data[0][0] = "<span style='font-size: 10px'>" . __("Please note that you cannot upload .php or .pl files, as well other source code formats. Please compress that files prior to upload (using zip or gz)") . "</span>";
$table->data[1][0] = print_textarea('file_description', 8, 1, '', "style='resize:none'", true, __('Description'));
if (defined('AJAX')) {
    $action = 'ajax.php?page=operation/incidents/incident_detail';
} else {
    $action = 'index.php?sec=incidents&sec2=operation/incidents/incident_detail';
}
$into_form = print_table($table, true);
$into_form .= '<div class="button" style="width: ' . $table->width . '">';
$into_form .= print_button(__('Upload'), 'upload', false, '', 'class="sub upload"', true);
$into_form .= '</div>';
$into_form .= print_input_hidden('id', $id, true);
$into_form .= print_input_hidden('upload_file', 1, true);
// Important: Set id 'form-add-file' to form. It's used from ajax control
print_input_file_progress($action, $into_form, 'id="form-add-file"', 'sub next', 'button-upload');
echo '</div>';
コード例 #12
0
ファイル: shop_ship.php プロジェクト: smrealms/smrv2.0
        echo '+';
    } else {
        echo '-';
    }
    echo '</td><td>';
    if (!empty($max_hardware[11])) {
        echo '+';
    } else {
        echo '-';
    }
    echo '</td></tr>';
    echo '</table><br>';
    echo '<table cellspacing="0"class="nobord">';
    echo '<tr><td><hr style="width:200px"></td></tr>';
    echo '<tr><td class="right">+ ';
    echo number_format($cost);
    echo '</td></tr>';
    echo '<tr><td><hr style="width:200px"></td></tr>';
    echo '<tr><td class="right">- ';
    echo number_format($ship->cost >> 1);
    echo '</td></tr>';
    echo '<tr><td><hr style="width:200px"></td></tr>';
    echo '<tr><td class="right">= ';
    echo number_format($cost - ($ship->cost >> 1));
    echo '</td></tr>';
    echo '<tr><td><hr style="width:200px"></td></tr>';
    echo '<tr><td class="right">';
    echo print_button($container, 'Buy');
    echo '</td></tr>';
    echo '</table>';
}
コード例 #13
0
 $params_assigned['input_value'] = $owner;
 $params_assigned['title'] = 'Owner';
 $params_assigned['return'] = true;
 $table_search->data[1][0] = user_print_autocomplete_input($params_assigned);
 $contracts = get_contracts();
 $manufacturers = get_manufacturers();
 $table_search->data[1][1] = print_select($contracts, 'id_contract', $id_contract, '', __('None'), 0, true, false, false, __('Contract'), '', 'width: 200px;');
 $table_search->data[1][2] = print_select($manufacturers, 'id_manufacturer', $id_manufacturer, '', __('None'), 0, true, false, false, __('Manufacturer'), '', 'width: 200px;');
 $table_search->data[1][3] = print_checkbox_extended('last_update', 1, $last_update, false, '', '', true, __('Last updated'));
 $buttons = '<div style=" text-align: right;">';
 $buttons .= print_input_hidden('search', 1, true);
 $buttons .= print_input_hidden('mode', $mode, true);
 $buttons .= print_submit_button(__('Search'), 'search', false, 'class="sub search"', true);
 $filter["query"] = $sql_search;
 serialize_in_temp($filter, $config["id_user"]);
 $buttons .= print_button(__('Export to CSV'), '', false, 'window.open(\'' . 'include/export_csv.php?export_csv_inventory=1' . '\')', 'class="sub csv"', true);
 $buttons .= print_report_button("index.php?sec=inventory&sec2=operation/inventories/inventory&search=1&params={$params}", __('Export to PDF') . "&nbsp;");
 $buttons .= '</div>';
 $all_inventory_status = inventories_get_inventory_status();
 array_unshift($all_inventory_status, __("All"));
 $table_search->data[2][0] = print_select($all_inventory_status, 'inventory_status', $inventory_status, '', '', '', true, false, false, __('Status'));
 $params_associated['input_id'] = 'text-associated_user';
 $params_associated['input_name'] = 'associated_user';
 $params_associated['input_value'] = $associated_user;
 $params_associated['title'] = __('Associated user');
 $params_associated['return'] = true;
 $table_search->data[2][1] = user_print_autocomplete_input($params_associated);
 $companies = get_companies();
 array_unshift($companies, __("All"));
 $table_search->data[2][2] = print_select($companies, 'id_company', $id_company, '', '', 0, true, false, false, __('Associated company'), '', 'width: 200px;');
 $table_search->data[3][0] = "&nbsp;";
コード例 #14
0
ファイル: audit.php プロジェクト: articaST/integriaims
$table_search->style[1] = 'font-weight: bold';
$table_search->style[2] = 'font-weight: bold';
$table_search->style[3] = 'font-weight: bold';
$table_search->data = array();
$table_search->data[0][0] = __('Search');
$table_search->data[0][0] .= print_input_text("text", $text, "", 25, 100, true);
$table_search->data[1][0] = __('Action');
$table_search->data[1][0] .= print_select($actions, 'action', $action, '', __('Any'), '', true, false, true, '', false, "width:218px;");
$table_search->data[2][0] = __('Date from');
$table_search->data[2][0] .= print_input_text('date_from', $date_from, '', 10, 20, true, '');
$table_search->data[3][0] = __('Date to');
$table_search->data[3][0] .= print_input_text('date_to', $date_to, '', 10, 20, true);
$table_search->data[4][0] = print_submit_button(__('Search'), 'search_btn', false, 'class="sub search"', true);
$where_clause = $where;
$where_clause = str_replace(array("\r", "\n"), '', $where_clause);
$table_search->data[5][0] = print_button(__('Export to CSV'), '', false, 'window.open(\'include/export_csv.php?export_csv_audit=1&where_clause=' . str_replace('"', "\\'", $where_clause) . '\')', 'class="sub"', true);
echo "<div class='divform'>";
echo "<form method=post action ='index.php?sec=godmode&sec2=godmode/setup/audit&text={$text}&action={$action}' >";
print_table($table_search);
echo "</form>";
echo "</div>";
// Pagination
$total_events = get_db_sql("SELECT COUNT(ID_sesion) FROM tsesion {$where}");
echo "<div class='divresult'>";
pagination($total_events, "index.php?sec=godmode&sec2=godmode/setup/audit&text={$text}&action={$action}", $offset);
$table = new StdClass();
$table->width = '100%';
$table->class = 'listing';
$table->head = array();
$table->head[0] = __('Accion');
$table->head[1] = __('User');
コード例 #15
0
html_page_top1(lang_get('manage_projects_link'));
html_page_top2();
print_manage_menu('manage_proj_page.php');
# Project Menu Form BEGIN
?>
<br />
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title" colspan="5">
		<?php 
echo lang_get('projects_title');
?>
		<?php 
# Check the user's global access level before allowing project creation
if (access_has_global_level(config_get('create_project_threshold'))) {
    print_button('manage_proj_create_page.php', lang_get('create_new_project_link'));
}
?>
	</td>
</tr>
<tr class="row-category">
	<td width="20%">
		<?php 
print_manage_project_sort_link('manage_proj_page.php', lang_get('name'), 'name', $t_direction, $f_sort);
?>
		<?php 
print_sort_icon($t_direction, $f_sort, 'name');
?>
	</td>
	<td width="10%">
		<?php 
コード例 #16
0
function mcm_web_print_table($args)
{
    global $mcm;
    extract($args, EXTR_PREFIX_ALL, 'arg');
    /* 
     * required:
     *
     * $arg_action      - {prev,next} order
     * $arg_start       - query start offset
     * $arg_item_status - {accepted,rejected,undefined}
     * $arg_item_type   - user-defined item type
     *
     */
    $limit = 6;
    /* TODO: set this as a config option */
    $table_cols = 3;
    $start = $arg_start;
    $start = $arg_action == 'next' ? $start + $limit : $start;
    $start = $arg_action == 'prev' ? $start - $limit : $start;
    /* determine number of items available */
    $params = array('user_id' => $mcm['user_id'], 'item_status' => $arg_item_status, 'item_type' => $arg_item_type, 'order' => 'artist_name, album_name, item_quality', 'limit' => "{$start}, {$limit}");
    $items_list = mcm_action('lookup_itemlist', $params);
    $num_items = mcm_action('lookup_itemlist_count', $params);
    if ($num_items == 0) {
        mcm_web_nothing_to_review();
        return;
    }
    ?>
<form method="post" action="<?php 
    echo $mcm['self'];
    ?>
">
<table id="list-and-nav" class="center">
    <tr>
        <td id="nav-left" class="nav">
            <?php 
    print_navigation($start, $limit, $num_items, 'left');
    ?>
        </td>
        
        <td>
            <table id="list">
            <input type="hidden" name="start" value="<?php 
    echo $start;
    ?>
">
            <input type="hidden" name="item_status" value="<?php 
    echo $arg_item_status;
    ?>
">
            <input type="hidden" name="item_type" value="<?php 
    echo $arg_item_type;
    ?>
">
<?php 
    $row_number = 0;
    foreach ($items_list as $id => $row) {
        /* load current item status from db into session */
        if (!isset($_SESSION['status'][$id])) {
            $_SESSION['status'][$id] = $arg_item_status;
        }
        $row_number++;
        $album_dirname = "[{$row['artist_name']}] [{$row['album_name']}] [{$row['item_quality']}]";
        $cover_url = mcm_action('create_cover_url', $album_dirname);
        $playlist_url = create_player($album_dirname);
        echo ($row_number - 1) % $table_cols == 0 ? "       <tr>\n" : "";
        ?>
                    <td class="item" id="id<?php 
        echo $id;
        ?>
-item">
                        <div id="id<?php 
        echo $id;
        ?>
-artist" class="artist"><?php 
        echo $row['artist_name'];
        ?>
</div>
                        <div id="id<?php 
        echo $id;
        ?>
-album" class="album"><?php 
        echo $row['album_name'];
        ?>
</div>
                        <div class="cover-container" onmouseover="if (isMouseLeaveOrEnter(event, this)) showOverlay('id<?php 
        echo $id;
        ?>
')" onmouseout="if (isMouseLeaveOrEnter(event, this)) hideOverlay('id<?php 
        echo $id;
        ?>
')">
                            <a href="#" onmousedown="loadPlaylist('<?php 
        echo $playlist_url;
        ?>
', '<?php 
        echo $cover_url;
        ?>
'); return false;">
                                <img id="id<?php 
        echo $id;
        ?>
-overlay" src="images/overlay.png" class="overlay" alt="">
                                <img id="id<?php 
        echo $id;
        ?>
-cover" src="<?php 
        echo $cover_url;
        ?>
" class="cover<?php 
        print_cover_class($id, $_SESSION['status'][$id]);
        ?>
" alt="album cover" width="150" height="150">
                            </a>
                        </div>
                        <div class="choices">
                            <a href="#" onmousedown="clickRadio('id<?php 
        echo $id;
        ?>
', 'add'); return false;"><img id="id<?php 
        echo $id;
        ?>
-img-add" src="images/add<?php 
        print_button($id, 'accepted');
        ?>
.png" alt="Add" title="Add"></a>
                            <input type="radio" id="id<?php 
        echo $id;
        ?>
-add" name="id<?php 
        echo $id;
        ?>
" value="accepted"<?php 
        print_checkbox($id, 'accepted');
        ?>
>
                            <a href="#" onmousedown="clickRadio('id<?php 
        echo $id;
        ?>
', 'rem'); return false;"><img id="id<?php 
        echo $id;
        ?>
-img-rem" src="images/remove<?php 
        print_button($id, 'rejected');
        ?>
.png" alt="Remove" title="Remove"></a>
                            <input type="radio" id="id<?php 
        echo $id;
        ?>
-rem" name="id<?php 
        echo $id;
        ?>
" value="rejected"<?php 
        print_checkbox($id, 'rejected');
        ?>
>
                            <a href="#" onmousedown="clickRadio('id<?php 
        echo $id;
        ?>
', 'und'); return false;"><img id="id<?php 
        echo $id;
        ?>
-img-und" src="images/undecided<?php 
        print_button($id, 'undefined');
        ?>
.png" alt="Undecided" title="Undecided"></a>
                            <input type="radio" id="id<?php 
        echo $id;
        ?>
-und" name="id<?php 
        echo $id;
        ?>
" value="undefined"<?php 
        print_checkbox($id, 'undefined');
        ?>
>
                        </div>
                    </td>
<?php 
        echo $row_number % $table_cols == 0 ? "       </tr>\n" : "";
    }
    echo $row_number % $table_cols != 0 ? "     </tr>\n" : "";
    ?>
                </tr>
            </table>
        </td>
    
        <td id="nav-right" class="nav">
            <?php 
    print_navigation($start, $limit, $num_items, 'right');
    ?>
        </td>
    </tr>
</table>

<div id="selected-artist"></div>
<div id="selected-album"></div>

<table id="player-table" class="center">
    <tr>
        <td id="player-cover-container">
            <img id="player-cover" src="images/player-cover.png" alt="Album Cover" width="100" height="100">
        </td>
        <td rowspan="2" id="player-meta">
        <div id="player-artist"></div>
        <div id="player-album"></div>
        <div id="player-title"></div>
        <div id="player-next">
            <span id="player-next-label"></span><span id="player-next-title"></span>
        </div>
        </td>
    </tr>
    <tr>
        <td id="player-controls">
            <a href="#" onmousedown="player.sendEvent('PREV'); return false;"><img src="images/rew.png" alt="Rewind" title="Previous Track"></a>
            <a href="#" onmousedown="player.sendEvent('PLAY'); return false;"><img src="images/play-pause.png" alt="Play/Pause" title="Play/Pause"></a>
            <a href="#" onmousedown="player.sendEvent('NEXT'); return false;"><img src="images/fwd.png" alt="Forward" title="Next Track"></a>
        </td>
    </tr>
</table>

<div id="toolbar">
    <a href="#" onclick="alert('Help not implemented. Yet.'); return false;"><img src="images/help.png" title="Help" alt="Help"></a> | 
    <input type="image" src="images/save-exit.png" name="submit" value="finish" title="Save and Exit"> |
    <input type="image" src="images/exit.png" name="submit" value="exit" title="Exit Without Saving" onclick="return confirm('You will lose all current selections!\n\nAre you sure you want to exit without saving?');">
</div>
<p id="player" style="text-align: center;">Media player requires Adobe Flash Player to be installed. <a href="http://www.adobe.com/go/getflashplayer">Download now</a>.</p>

</form>
<?php 
}
コード例 #17
0
ファイル: functions_form.php プロジェクト: keunes/integriaims
function form_search_incident($return = false, $filter = false)
{
    include_once "functions_user.php";
    global $config;
    $output = '';
    if (!$filter) {
        $search_string = (string) get_parameter('search_string');
        $status = (int) get_parameter('search_status', -10);
        $priority = (int) get_parameter('search_priority', -1);
        $resolution = (int) get_parameter('search_resolution', -1);
        $id_group = (int) get_parameter('search_id_group');
        $id_inventory = (int) get_parameter('search_id_inventory');
        $id_company = (int) get_parameter('search_id_company');
        $search_id_user = (string) get_parameter('search_id_user');
        $search_id_incident_type = (int) get_parameter('search_id_incident_type');
        $date_from = (int) get_parameter("search_from_date");
        $date_start = (string) get_parameter("search_first_date");
        $date_end = (string) get_parameter("search_last_date");
        $search_creator = (string) get_parameter('search_id_creator');
        $search_editor = (string) get_parameter('search_editor');
        $search_closed_by = (string) get_parameter('search_id_creator');
        $group_by_project = (bool) get_parameter('search_group_by_project');
        $sla_state = (int) get_parameter('search_sla_state', 0);
        $id_task = (int) get_parameter('search_id_task', 0);
        $left_sla = (int) get_parameter('search_left_sla', 0);
        $right_sla = (int) get_parameter('search_right_sla', 0);
        $show_hierarchy = (bool) get_parameter('show_hierarchy');
        $type_fields = incidents_get_type_fields($search_id_incident_type);
        $search_type_field = array();
        foreach ($type_fields as $key => $type_field) {
            $search_type_field[$type_field['id']] = (string) get_parameter('search_type_field_' . $type_field['id']);
        }
    } else {
        $search_string = (string) $filter['string'];
        $priority = (int) $filter['priority'];
        $id_group = (int) $filter['id_group'];
        $status = (int) $filter['status'];
        $resolution = (int) $filter['resolution'];
        $id_company = (int) $filter['id_company'];
        $id_inventory = (int) $filter['id_inventory'];
        $search_id_incident_type = (int) $filter['id_incident_type'];
        $search_id_user = (string) $filter['id_user'];
        $date_from = (int) $filter['from_date'];
        $date_start = (string) $filter['first_date'];
        $date_end = (string) $filter['last_date'];
        $search_creator = (string) $filter['id_creator'];
        $search_editor = (string) $filter['editor'];
        $search_closed_by = (string) $filter['closed_by'];
        $group_by_project = (bool) $filter['group_by_project'];
        $sla_state = (int) $filter['sla_state'];
        $id_task = (int) $filter['id_task'];
        $left_sla = (int) $filter['left_sla'];
        $right_sla = (int) $filter['right_sla'];
        $show_hierarchy = (bool) $filter['show_hierarchy'];
        $type_fields = incidents_get_type_fields($search_id_incident_type);
        $search_type_field = array();
        if ($type_fields) {
            foreach ($type_fields as $key => $type_field) {
                $search_type_field[$type_field['id']] = (string) $filter['type_field_' . $type_field['id']];
            }
        }
    }
    /* No action is set, so the form will be sent to the current page */
    $table = new stdclass();
    $table->width = "99%";
    $table->class = "search-table-button";
    $table->cellspacing = 2;
    $table->cellpadding = 2;
    $table->data = array();
    $table->size = array();
    $table->style = array();
    $table->style[0] = 'width: 25%';
    $table->style[1] = 'width: 25%';
    $table->style[2] = 'width: 25%; vertical-align:text-top;';
    $table->style[3] = 'width: 25%';
    $table->rowstyle = array();
    $table->rowstyle[1] = 'display: none';
    $table->rowstyle[2] = 'display: none';
    $table->rowstyle[3] = 'display: none';
    $table->rowstyle[4] = 'display: none';
    $table->rowstyle[5] = 'display: none';
    $table->rowstyle[6] = 'text-align: right';
    $table->colspan = array();
    $table->colspan[0][0] = 2;
    $table->colspan[6][0] = 4;
    $table->colspan[7][1] = 3;
    $table->rowspan = array();
    $table->rowspan[2][2] = 2;
    $table->data[0][0] = print_input_text('search_string', $search_string, '', 50, 100, true, __('Search string'));
    $available_status = get_indicent_status();
    $available_status[-10] = __("Not closed");
    $table->data[0][1] = print_select($available_status, 'search_status', $status, '', __('Any'), 0, true, false, true, __('Status'));
    $groups = users_get_groups_for_select($config['id_user'], "IW", true, true);
    $table->data[0][2] = print_select($groups, 'search_id_group', $id_group, '', '', '', true, false, false, __('Group'));
    $table->data[0][3] = print_checkbox_extended('search_show_hierarchy', 1, $show_hierarchy, false, '', '', true, __('Show hierarchy'));
    $params_owner = array();
    $params_owner['input_id'] = 'text-search_id_user';
    $params_owner['input_name'] = 'search_id_user';
    $params_owner['input_value'] = $search_id_user;
    $params_owner['title'] = __('Owner');
    $params_owner['return'] = true;
    $table->data[1][0] = user_print_autocomplete_input($params_owner);
    $params_editor = array();
    $params_editor['input_id'] = 'text-search_editor';
    $params_editor['input_name'] = 'search_editor';
    $params_editor['input_value'] = $search_editor;
    $params_editor['title'] = __('Editor');
    $params_editor['return'] = true;
    $table->data[1][1] = user_print_autocomplete_input($params_editor);
    $params_closed_by = array();
    $params_closed_by['input_id'] = 'text-search_closed_by';
    $params_closed_by['input_name'] = 'search_closed_by';
    $params_closed_by['input_value'] = $search_closed_by;
    $params_closed_by['title'] = __('Closed by');
    $params_closed_by['return'] = true;
    $table->data[1][2] = user_print_autocomplete_input($params_closed_by);
    $params_creator = array();
    $params_creator['input_id'] = 'text-search_id_creator';
    $params_creator['input_name'] = 'search_id_creator';
    $params_creator['input_value'] = $search_creator;
    $params_creator['title'] = __('Creator');
    $params_creator['return'] = true;
    $table->data[1][3] = user_print_autocomplete_input($params_creator);
    $table->data[2][0] = print_select(get_priorities(), 'search_priority', $priority, '', __('Any'), -1, true, false, false, __('Priority'), false);
    $table->data[2][1] = print_select(get_incident_resolutions(), 'search_resolution', $resolution, '', __('Any'), -1, true, false, false, __('Resolution'), false);
    $table->data[2][2] = get_last_date_control($date_from, 'search_from_date', __('Date'), $date_start, 'search_first_date', __('Created from'), $date_end, 'search_last_date', __('Created to'));
    $name = $id_inventory ? get_inventory_name($id_inventory) : '';
    $table->data[2][3] = print_input_text('inventory_name', $name, '', 7, 0, true, __('Inventory'), false);
    $table->data[2][3] .= "&nbsp;&nbsp;<a href='javascript: show_search_inventory(\"\",\"\",\"\",\"\",\"\",\"\");'>" . print_image('images/zoom.png', true, array('title' => __('Search inventory'))) . "</a>";
    $table->data[2][3] .= print_input_hidden('id_inventory', $id_inventory, true);
    if (!get_external_user($config["id_user"])) {
        $table->data[4][0] = print_select(get_companies(), 'search_id_company', $id_company, '', __('All'), 0, true, false, false, __('Company'));
    }
    $table->data[4][1] = print_select(get_incident_types(), 'search_id_incident_type', $search_id_incident_type, 'javascript:change_type_fields_table();', __('All'), 0, true, false, false, __('Ticket type'));
    $table->data[4][3] = print_checkbox_extended('search_group_by_project', 1, $group_by_project, false, '', '', true, __('Group by project/task'));
    $sla_states = array();
    $sla_states[1] = __('SLA is fired');
    $sla_states[2] = __('SLA is not fired');
    $table->data[5][0] = print_select($sla_states, 'search_sla_state', $sla_state, '', __('All'), 0, true, false, false, __('SLA'));
    $table->data[5][1] = combo_task_user_participant($config["id_user"], 0, $id_task, true, __("Task"), 'search_id_task');
    $table->data[5][2] = print_input_text('search_left_sla', $left_sla, '', 7, 0, true, __('SLA > (%)'), false);
    $table->data[5][3] = print_input_text('search_right_sla', $right_sla, '', 7, 0, true, __('SLA < (%)'), false);
    $table_type_fields = new stdclass();
    $table_type_fields->width = "100%";
    $table_type_fields->class = "search-table";
    $table_type_fields->data = array();
    //Print custom field data
    $column = 0;
    $row = 0;
    if ($type_fields) {
        foreach ($type_fields as $key => $type_field) {
            $data = $search_type_field[$type_field['id']];
            if ($type_field['type'] == "text" || $type_field['type'] == "textarea") {
                $input = print_input_text('search_type_field_' . $type_field['id'], $data, '', 30, 30, true, $type_field['label']);
            } else {
                if ($type_field['type'] == "combo") {
                    $combo_values = explode(",", $type_field['combo_value']);
                    $values = array();
                    foreach ($combo_values as $value) {
                        $values[$value] = $value;
                    }
                    $input = print_select($values, 'search_type_field_' . $type_field['id'], $data, '', __('Any'), '', true, false, false, $type_field['label']);
                } else {
                    if ($type_field['type'] == "linked") {
                        $linked_values = explode(",", $type_field['linked_value']);
                        $values = array();
                        foreach ($linked_values as $value) {
                            $value_without_parent = preg_replace("/^.*\\|/", "", $value);
                            $values[$value_without_parent] = $value_without_parent;
                            $has_childs = get_db_all_rows_sql("SELECT * FROM tincident_type_field WHERE parent=" . $type_field['id']);
                            if ($has_childs) {
                                $i = 0;
                                foreach ($has_childs as $child) {
                                    if ($i == 0) {
                                        $childs = $child['id'];
                                    } else {
                                        $childs .= ',' . $child['id'];
                                    }
                                    $i++;
                                }
                                $childs = "'" . $childs . "'";
                                $script = 'javascript:change_linked_type_fields_table(' . $childs . ',' . $type_field['id'] . ');';
                            } else {
                                $script = '';
                            }
                        }
                        $input = print_select($values, 'search_type_field_' . $type_field['id'], $data, $script, __('Any'), '', true, false, false, $type_field['label']);
                    }
                }
            }
            $table_type_fields->data[$row][$column] = $input;
            if ($column >= 3) {
                $column = 0;
                $row++;
            } else {
                $column++;
            }
        }
    }
    if ($table_type_fields->data) {
        $table_type_fields_html = print_table($table_type_fields, true);
    }
    $table->data[6][0] = "<div id='table_type_fields'>" . $table_type_fields_html . "</div>";
    $table->data[7][0] = '<div style="width: 100%; text-align: left; height: 20px;"><a class="show_advanced_search" id="show_advanced_search" href="javascript:show_ad_search();">' . __('Advanced search') . '></a></div>';
    //Store serialize filter
    serialize_in_temp($filter, $config["id_user"]);
    $table->data[7][2] = print_submit_button(__('Search'), 'search', false, 'class="sub search"', true);
    $table->data[7][2] .= print_button(__('Export to CSV'), '', false, 'window.open(\'' . 'include/export_csv.php?export_csv_tickets=1' . '\')', 'class="sub csv"', true);
    $table->colspan[7][2] = 4;
    $output .= '<form id="search_incident_form" method="post" action="index.php?sec=incidents&sec2=operation/incidents/incident_search">';
    $output .= print_table($table, true);
    $output .= '</form>';
    echo "<div class= 'dialog ui-dialog-content' id='search_inventory_window'></div>";
    if ($return) {
        return $output;
    }
    echo $output;
}
コード例 #18
0
$route = unserialize($var["plotted_course"]);
$full = implode(' - ', $route);
// throw start sector away
// it's useless for the route
array_shift($route);
// now get the sector we are going to but don't remove it (sector_move_processing does it)
$next_sector = $route[0];
if ($next_sector == $sector->link_up || $next_sector == $sector->link_down || $next_sector == $sector->link_left || $next_sector == $sector->link_right || $next_sector == $sector->warp) {
    // save this to db (if we still have something
    if (!empty($route)) {
        $db->query("REPLACE INTO player_plotted_course\n\t\t\t\t\t(account_id, game_id, distance, course)\n\t\t\t\t\tVALUES({$player->account_id}, {$player->game_id}, " . $var["distance"] . ", '" . serialize($route) . "')");
    }
    //print_form($container);
    if ($player->land_on_planet == "FALSE") {
        $container = array();
        $container["url"] = "sector_move_processing.php";
        $container["target_page"] = "current_sector.php";
        $container["target_sector"] = $next_sector;
        print_button($container, "Follow plotted course - " . $next_sector . " (" . $var["distance"] . ")");
        if (!empty($ship->hardware[HARDWARE_SCANNER])) {
            print "&nbsp;&nbsp;&nbsp;";
            $container = array();
            $container["url"] = "skeleton.php";
            $container["body"] = "sector_scan.php";
            $container["target_sector"] = $next_sector;
            print_button($container, "Scan");
        }
    }
}
echo '</td></tr></table><br><h2>Plotted Course</h2><br>';
echo $full;
コード例 #19
0
ファイル: mail.php プロジェクト: articaST/integriaims
        }
        if (!empty($pass)) {
            $transport_conf['pass'] = $pass;
        }
        if (!empty($proto)) {
            $transport_conf['proto'] = $proto;
        }
    }
    try {
        // If the transport can connect, it will not throw an exception
        mail_get_transport($transport_conf);
        // Success
        echo json_encode(array('result' => true, 'message' => __('Success')));
        return;
    } catch (Exception $e) {
        // Failure
        echo json_encode(array('result' => false, 'message' => $e->getMessage()));
        return;
    }
}
if ($change_template_alert) {
    echo "<div style='float: left;'><img style='padding:10px;' src='images/icon_delete.png' alt='" . __('Delete') . "'></div>";
    echo "<div style='float: left; font-size:15px; font-weight: bold; margin-top:32px;'><b>" . __('Are you sure you want to change action?') . "</b></br>";
    echo "<span style='font-size:13px; font-weight: normal; line-height: 1.5em;'>" . __('Remove template contents') . "</span></div>";
    echo '<form id="change_template_form" method="post">';
    echo print_submit_button(__('Delete'), "delete_btn", false, 'class="sub close" width="160px;"', true);
    echo print_button(__('Cancel'), 'modal_cancel', false, '', '', false);
    echo '</form>';
    return;
}
exit;
コード例 #20
0
ファイル: logviewer.php プロジェクト: dsyman2/integriaims
// GNU General Public License for more details.
global $config;
check_login();
if (give_acl($config["id_user"], 0, "FM") == 0) {
    audit_db($config["id_user"], $config["REMOTE_ADDR"], "ACL Violation", "Trying to access log viewer");
    require "general/noaccess.php";
    exit;
}
$file_name = $config["homedir"] . "/integria.log";
$delete = get_parameter("delete", 0);
if ($delete == 1) {
    if (file_exists($file_name)) {
        unlink($file_name);
    }
}
echo "<h1>" . __("Error log") . "</h1>";
if (!file_exists($file_name)) {
    echo "<div class='under_tabs_info'>" . __("Cannot find file") . "(" . $file_name . ")</div>";
} else {
    $filesize = filesize($file_name);
    $offset = ceil($filesize / 4 * 3);
    // read only from the 3/4 part of file
    $data = file_get_contents($file_name, NULL, NULL, $offset);
    echo "<div class='under_tabs_info'>{$file_name} " . __("Reading from byte") . " " . $offset . "</div><br>";
    echo "<div style='width: 99%; text-align: right;'>";
    print_button(__("Delete logfile"), '', false, 'window.open(\'index.php?sec=godmode&sec2=godmode/setup/logviewer&delete=1\')', 'class="sub delete"');
    echo "</div>";
    echo "</br><textarea style='width: 99%; height: 500px;' name='{$file_name}'>";
    echo $data;
    echo "</textarea><br><br>";
}
コード例 #21
0
ファイル: setup_mail.php プロジェクト: articaST/integriaims
$row[] = print_input_text("notification_period", $config["notification_period"], '', 7, 7, true, __('Notification period') . integria_help("notification_period", true));
$row[] = print_input_text("mail_from", $config["mail_from"], '', 30, 50, true, __('System mail from address'));
$table->data[] = $row;
$row = array();
$row[] = "<br /><h4>" . __("SMTP Parameters") . integria_help("mailsetup", true) . "</h4>";
$table->data['smtp_title'] = $row;
$table->colspan['smtp_title'][0] = $cols;
$row = array();
$row[] = print_select($smtp_prococols, 'smtp_proto', $config['smtp_proto'], '', '', '', true, 0, true, __('Encryption'));
$row[] = print_input_text("smtp_host", $config["smtp_host"], '', 35, 200, true, __('SMTP Host') . print_help_tip(__("Left it blank if you want to use your local mail, instead an external SMTP host"), true));
$row[] = print_input_text("smtp_port", $config["smtp_port"], '', 5, 10, true, __('SMTP Port'));
$table->data[] = $row;
$row = array();
$row[] = print_input_text("smtp_user", $config["smtp_user"], '', 25, 200, true, __('SMTP User'));
$row[] = print_input_text("smtp_pass", $config["smtp_pass"], '', 25, 200, true, __('SMTP Password'));
$row[] = print_button(__("Test"), 'test_smtp', false, '', 'class="sub"', true) . '<div id="test_smtp_images" style="display: inline;"></div>';
$table->data[] = $row;
$row = array();
$row[] = print_input_text("smtp_queue_retries", $config["smtp_queue_retries"], '', 5, 10, true, __('SMTP Queue retries') . print_help_tip(__("This are the number of attempts the mail queue try to send the mail. Should be high (20-30) if your internet connection have frequent downtimes and near zero if its stable"), true));
$row[] = print_input_text("max_pending_mail", $config["max_pending_mail"], '', 10, 255, true, __('Max pending mail') . print_help_tip(__("Maximum number of queued emails. When this number is exceeded, an alert is activated"), true));
$row[] = print_input_text("batch_newsletter", $config["batch_newsletter"], '', 4, 255, true, __('Max. emails sent per execution') . print_help_tip(__("This means, in each execution of the batch external process (integria_cron). If you set your cron to execute each hour in each execution of that process will try to send this ammount of emails. If you set the cron to run each 5 min, will try this number of mails."), true));
$table->data[] = $row;
$row = array();
$row[] = "<br /><h4>" . __("POP/IMAP Parameters") . "</h4>";
$table->data['pop-imap'] = $row;
$table->colspan['pop-imap'][0] = $cols;
$row = array();
$row[] = print_select($popimap, "select_pop_imap", $config["select_pop_imap"], '', '', '', true, 0, true, __('Select IMAP or POP'));
$row[] = print_input_text("pop_host", $config["pop_host"], '', 25, 30, true, __('POP/IMAP Host') . print_help_tip(__("Use ssl://host.domain.com if want to use IMAP with SSL"), true));
$row[] = print_input_text("pop_port", $config["pop_port"], '', 15, 30, true, __('POP/IMAP Port') . print_help_tip(__("POP3: Port 110, IMAP: Port 143, IMAPS: Port 993, SSL-POP: Port 995"), true));
$table->data[] = $row;
コード例 #22
0
			print_single_workunit_report($mwur);
		}
	}
	else {
		echo "<div id='tab2' class='ui-tabs-panel ui-tabs-hide'>"; //Multiple WU
		echo '<form id="multiple_task_form" method="post" onsubmit="return validate_multiple_form()">';
		print_input_hidden ('operation', 'multiple_wu_insert');
		
		//Massive work unit list
		create_new_table_multiworkunit(1);
		echo "<table width='100%' class='button-form'>";
		echo "<tr>";
		echo "<td style='width: 90%;'>";
		echo "</td>";
		echo "<td>";
		echo print_button (__('Add'), 'add_multi_wu', false, '', 'class="sub create"');
		echo "</td>";
		echo "<td>";
		echo print_submit_button (__('Save'), 'btn_upd', false, 'class="sub save"');
		echo "</td>";
		echo "</tr>";
		echo "</table>";
		echo '</form>';
	}
	echo '</div>';
}


?>

<script type="text/javascript" src="include/languages/date_<?php echo $config['language_code']; ?>.js"></script>
コード例 #23
0
    ?>
</td>
				<td><?php 
    echo get_enum_element('access_levels', $v_access_reqd);
    ?>
</td>
<?php 
    if ($t_read_write_access) {
        ?>
				<td class="center">
<?php 
        if (config_can_delete($v_config_id)) {
            # Update button (will populate edit form at page bottom)
            print_button('#config_set_form', lang_get('edit_link'), array('user_id' => $v_user_id, 'project_id' => $v_project_id, 'config_option' => $v_config_id, 'type' => $v_type, 'value' => $v_value), OFF);
            # Delete button
            print_button('adm_config_delete.php', lang_get('delete_link'), array('user_id' => $v_user_id, 'project_id' => $v_project_id, 'config_option' => $v_config_id), $t_form_security_token);
        } else {
            echo '&#160;';
        }
        ?>
				</td>
<?php 
    }
    # end if config_can_delete
    ?>
			</tr>
<?php 
}
# end while loop
?>
		</tbody>
コード例 #24
0
 // $companies_name = crm_get_companies_list("", false, "ORDER BY name", true);
 // $table->data[1][0] = print_select ($companies_name, 'search_parent', $search_parent, '', __('Any'), 0, true, false, false, __('Parent'));
 $params = array();
 $params['input_id'] = 'search_parent';
 $params['input_name'] = 'search_parent';
 $params['input_value'] = $search_parent;
 $params['title'] = __('Parent');
 $params['return'] = true;
 $table->data[1][0] = print_company_autocomplete_input($params);
 $table->data[1][1] = print_input_text('search_date_begin', $search_date_begin, '', 15, 20, true, __('Date from'));
 $table->data[1][2] = print_input_text('search_date_end', $search_date_end, '', 15, 20, true, __('Date to'));
 $table->data[1][3] = print_input_text('search_min_billing', $search_min_billing, '', 15, 20, true, __('Min. billing'));
 $buttons = print_submit_button(__('Search'), "search_btn", false, 'class="sub search"', true);
 // Delete new lines from the string
 $where_clause = str_replace(array("\r", "\n"), '', $where_clause);
 $buttons .= print_button(__('Export to CSV'), '', false, 'window.open(\'' . 'include/export_csv.php?export_csv_companies=1&where_clause=' . str_replace('"', "\\'", $where_clause) . '&date=' . $date . '\')', 'class="sub csv"', true);
 $table->data[2][0] = $buttons;
 $table->colspan[2][0] = 4;
 echo '<form method="post" id="company_stats_form" action="index.php?sec=customers&sec2=operation/companies/company_detail">';
 print_table($table);
 // Input hidden for ORDER
 print_input_hidden('order_by_activity', $order_by_activity);
 print_input_hidden('order_by_company', $order_by_company);
 print_input_hidden('order_by_billing', $order_by_billing);
 echo '</form>';
 $companies = crm_get_companies_list($where_clause, $date, $order_by, false, $having);
 $companies = print_array_pagination($companies, "index.php?sec=customers&sec2=operation/companies/company_detail{$search_params}", $offset);
 if ($companies !== false) {
     $table->width = "99%";
     $table->class = "listing";
     $table->data = array();
コード例 #25
0
            $t_can_change_view_state = $t_can_change_view_state_all_bugnotes;
        }
        # show edit button if the user is allowed to edit this bugnote
        if ($t_can_edit_bugnote) {
            print_button('bugnote_edit_page.php?bugnote_id=' . $t_bugnote->id, lang_get('bugnote_edit_link'));
        }
        # show delete button if the user is allowed to delete this bugnote
        if ($t_can_delete_bugnote) {
            print_button('bugnote_delete.php?bugnote_id=' . $t_bugnote->id, lang_get('delete_link'));
        }
        # show make public or make private button if the user is allowed to change the view state of this bugnote
        if ($t_can_change_view_state) {
            if (VS_PRIVATE == $t_bugnote->view_state) {
                print_button('bugnote_set_view_state.php?private=0&bugnote_id=' . $t_bugnote->id, lang_get('make_public'));
            } else {
                print_button('bugnote_set_view_state.php?private=1&bugnote_id=' . $t_bugnote->id, lang_get('make_private'));
            }
        }
    }
    ?>
		</div>
	</td>
	<td class="bugnote-note">
		<?php 
    switch ($t_bugnote->note_type) {
        case REMINDER:
            echo '<em>' . lang_get('reminder_sent_to') . ' ';
            $t_note_attr = utf8_substr($t_bugnote->note_attr, 1, utf8_strlen($t_bugnote->note_attr) - 2);
            $t_to = array();
            foreach (explode('|', $t_note_attr) as $t_recipient) {
                $t_to[] = prepare_user_name($t_recipient);
コード例 #26
0
        # show delete button if the user is allowed to delete this bugnote
        if ($t_can_delete_bugnote) {
            if (!$t_security_token_delete) {
                $t_security_token_delete = form_security_token('bugnote_delete');
            }
            print_button('bugnote_delete.php', lang_get('delete_link'), array('bugnote_id' => $t_bugnote->id), $t_security_token_delete);
        }
        # show make public or make private button if the user is allowed to change the view state of this bugnote
        if ($t_can_change_view_state) {
            if (!$t_security_token_state) {
                $t_security_token_state = form_security_token('bugnote_set_view_state');
            }
            if (VS_PRIVATE == $t_bugnote->view_state) {
                print_button('bugnote_set_view_state.php', lang_get('make_public'), array('private' => '0', 'bugnote_id' => $t_bugnote->id), $t_security_token_state);
            } else {
                print_button('bugnote_set_view_state.php', lang_get('make_private'), array('private' => '1', 'bugnote_id' => $t_bugnote->id), $t_security_token_state);
            }
        }
    }
    ?>
		</div>
	</td>
	<td class="bugnote-note">
		<?php 
    switch ($t_bugnote->note_type) {
        case REMINDER:
            echo '<strong>';
            # List of recipients; remove surrounding delimiters
            $t_recipients = trim($t_bugnote->note_attr, '|');
            if (empty($t_recipients)) {
                echo lang_get('reminder_sent_none');
コード例 #27
0
ファイル: picture_crop.php プロジェクト: reimht/lisa
    $crop_h = 100;
}
$style = "\n\t    #main\n\t        {\n\t\t\twidth: " . ($max_xy + 100) . "px;\n\t\t\t//height: " . ($max_xy + 250) . "px;\n\t        }\n\t\t#imagediv\n\t        {\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 2em auto 0;\n\t\t\twidth: " . ($image_width + 10) . "px;\n\t\t\theight: " . ($image_height + 10) . "px;\n\t\t\tbackground: gray;\n\t\t\tpadding: 10px;\n\t\t}";
$script = "\n\t\t jQuery(function(){\n\t\t\n\t\t\tjQuery('#cropbox').Jcrop({\n\t\t\t\taspectRatio: " . $settings["picture_aspectRatio"] . ",\n\t\t\t\t//setSelect:   [50, 0, 100,100],\n\t\t\t\tsetSelect:   [{$crop_x} , {$crop_y} , {$crop_w} , {$crop_h}],\n\t\t\t\tminSize: [ " . $settings["picture_min_x"] . " , " . $settings["picture_min_y"] . " ],\n\t\t\t\tonSelect: updateCoords\n\t\t\t});\n\t\t\n\t\t});\n\t\t\n\t\tfunction updateCoords(c)\n\t\t{\n\t\t\tjQuery('#x').val(c.x);\n\t\t\tjQuery('#y').val(c.y);\n\t\t\tjQuery('#w').val(c.w);\n\t\t\tjQuery('#h').val(c.h);\n\t\t};\n\t\t\n\t\tfunction checkCoords()\n\t\t{\n\t\t\tif (parseInt(jQuery('#w').val())>0) return true;\n\t\t\talert('Please select a crop region then press submit.');\n\t\t\treturn false;\n\t\t};\t";
$meta = "\n\t\t<script src='jquery-1.11.1.min.js' type='text/javascript'></script>\n\t\t<script src='jQueryRotate.js' type='text/javascript'></script>\n\t\t<script src='jquery.Jcrop.js' type='text/javascript'></script>\n\t\t<script src='jquery.color.js' type='text/javascript'></script>\t\n\t\t<link rel='stylesheet' href='jquery.Jcrop.min.css' type='text/css' />\n\t\t<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>\n\t\t<META HTTP-EQUIV='Expires' CONTENT='-1'>  \n\t";
//Start Page ($tilte, $style,$script,$meta,$body)
echo create_header($_SESSION["settings"]["html_title"], $style, $script, $meta, "", "logolisa.svg", false);
?>

			<h3>2. Schritt: Bitte markieren Sie Ihren Kopf!!</h3>

			<table>
				<tr>
					<td align="right">
						<?php 
print_button($lastpage, "button-back-croppicure", "zurück/drehen");
?>
					</td>
					<td align="left">
						<!-- This is the form that our event handler fills -->
						<form action="<?php 
echo $nextpage;
?>
" method="post" onsubmit="return checkCoords();">
							<input type="hidden" id="x" name="x" />
							<input type="hidden" id="y" name="y" />
							<input type="hidden" id="w" name="w" />
							<input type="hidden" id="h" name="h" />
							<input type="submit" value="weiter"  />
							<p style="margin: 0 0 0 0px; font-size: 90%;">
								
コード例 #28
0
ファイル: task_planning.php プロジェクト: dsyman2/integriaims
$content = '<div class="pie_frame">' . graph_workunit_project_task_status(180, 150, $id_project) . '</div>';
print_container('planning_hours_summary_task', __("Summary task status"), $content, 'no', false, '10px');
echo "</td>";
echo "<td>";
$content = '<div class="pie_frame">' . graph_project_task_per_user(180, 150, $id_project) . '</div>';
print_container('planning_hours_task_user', __("Task per user"), $content, 'no', false, '10px');
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</center>";
//Create button bar
echo "<div style='width:100%; border-spacing:0px;' class='button'>";
// Oppen the task creation
print_button(__('Add tasks'), 'addmass', false, '', 'class="sub create"');
// Submit the update form
print_button(__('Update'), 'update', false, 'document.forms[\'form-tasks\'].submit()', 'class="sub upd"');
echo "</div>";
//Get project users
$sql = sprintf("SELECT DISTINCT(id_user) FROM trole_people_project WHERE id_project = %d", $id_project);
$users_db = get_db_all_rows_sql($sql);
foreach ($users_db as $u) {
    $users[$u['id_user']] = $u['id_user'];
}
//Hidden div for task creation. Only for PM flag
echo "<div id='createTaskmass' style='display:none;padding:5px;'>";
//Form for task creation
echo "<form id='form-new_tasks' method='post' action='index.php?sec=projects&sec2=operation/projects/task_planning&id_project=" . $id_project . "'>";
echo "<table class='search-table-button' style='width: 99%'><tr><td colspan=4>";
echo "<strong>" . __('Put taskname in each line') . "</strong><br>";
print_textarea('tasklist', 5, 40);
echo "<tr>";
コード例 #29
0
			</td>
			<td>
				<?php 
    echo prepare_user_name($t_category['user_id']);
    ?>
			</td>
<?php 
    if ($t_can_update_global_cat) {
        ?>
			<td class="center">
				<?php 
        $t_id = urlencode($t_id);
        $t_project_id = urlencode(ALL_PROJECTS);
        print_button("manage_proj_cat_edit_page.php?id={$t_id}&project_id={$t_project_id}", lang_get('edit_link'));
        echo '&#160;';
        print_button("manage_proj_cat_delete.php?id={$t_id}&project_id={$t_project_id}", lang_get('delete_link'));
        ?>
			</td>
<?php 
    }
    ?>
		</tr>
<?php 
}
# end for loop
if ($t_can_update_global_cat) {
    ?>
<!-- Add Category Form -->
<tr>
	<td class="left" colspan="3">
		<form method="post" action="manage_proj_cat_add.php">
コード例 #30
0
ファイル: incident_new.php プロジェクト: dsyman2/integriaims
$table->colspan[2][0] = 2;
$table->data[0][0] = print_input_text('title', '', '', 100, 0, true, __('Title'));
$table->data[1][0] = print_select($priorities, 'priority_form', 2, '', '', '', true, false, false, __('Priority'));
$table->data[1][1] = print_select($types, 'id_incident_type', '', 'javascript: show_incident_type_fields(1);', 'Select', '', true, 0, true, __('Ticket type'));
$table->data[2][0] = print_textarea('description', 9, 80, '', '', true, __('Description'));
$action = 'index.php?sec=incidents&sec2=operation/incidents_simple/incidents';
$into_form = print_table($table, true);
$into_form .= '<h3><a href="javascript:toggle_file_addition();">' . __('Add a file') . ' (' . __('Optional') . ')<div style="float:left;"><img id="file_moreless" src="images/sort_down.png" border=0>&nbsp;</div></a></h3>';
$into_form .= '<div id="file_addition" style="display:none"><b>' . __('File') . '</b>';
$into_form .= '___FILE___';
$into_form .= print_input_hidden('create_incident', 1, true);
$into_form .= print_input_hidden('group_id', $group_id, true);
$into_form .= print_textarea('file_description', 2, 10, '', '', true, __('Description'));
$into_form .= "</div>";
$into_form .= "<div style='text-align:right;'>";
$into_form .= print_button(__('Create'), 'create_incident', false, '', 'style="margin-top:4px;" class="action_btn sub next"', true);
$into_form .= "</div>";
echo print_input_file_progress($action, $into_form, 'id="form-add-file"', 'sub next', 'button-create_incident', true, '___FILE___');
echo "</div>";
?>

<script type="text/javascript" src="include/js/integria_incident_search.js"></script>

<script type="text/javascript">
$(document).ready (function () {

	var id_group = '<?php 
echo $group_id;
?>
';
	var id_user = '<?php