当前位置: 首页>>代码示例>>PHP>>正文


PHP print_checkbox函数代码示例

本文整理汇总了PHP中print_checkbox函数的典型用法代码示例。如果您正苦于以下问题:PHP print_checkbox函数的具体用法?PHP print_checkbox怎么用?PHP print_checkbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_checkbox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: StdClass

if (!$filter_btn) {
    $show_events = 1;
    $show_wo = 1;
}

$table = new StdClass();
$table->width = '100%';
$table->class = "search-table";
$table->data = array ();
$table->colspan = array ();

$table->data[0][0] = print_checkbox ('show_events', 1, $show_events, true, __('Show entries'));
$table->data[0][1] = print_checkbox ('show_wu', 1, $show_wu, true, __('Show Workunits'));
$table->data[0][2] = print_checkbox ('show_projects', 1, $show_projects, true, __('Show projects'));
$table->data[0][3] = print_checkbox ('show_tasks', 1, $show_tasks, true, __('Show tasks'));
$table->data[0][4] = print_checkbox ('show_clients', 1, $show_clients, true, __('Show customers'));

$button = print_submit_button (__('Filter'), "filter_btn", false, 'class="sub search"', true);
         
$table->data[0][5] = $button;
    
print_table ($table);
echo '</form>'; 

echo "<div id='calendar'></div>";

echo "<table class='calendar_legend'>";
echo "<tr>";
echo "<td class='legend_color_box legend_project'></td>";
echo "<td>".__("Projects")."</td>";
echo "<td class='legend_color_box legend_task'></td>";
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:agenda.php

示例2: print_input_text

$table->data[1][1] = print_input_text("timezone", $config["timezone"], '', 15, 30, true, __('Timezone for integria'));
$table->data[2][0] = print_textarea("api_acl", 2, 1, $config["api_acl"], 'style="max-width: 280px;"', true, __('List of IP with access to API') . print_help_tip(__("List of IP (separated with commas which can access to the integria API. Use * for any address (INSECURE!)"), true), false);
$table->data[2][1] = print_input_password("api_password", $config["api_password"], '', 30, 255, true, __('API password'));
$days_of_week = get_days_of_week();
$table->data[4][0] = print_select($days_of_week, "first_day_week", $config["first_day_week"], '', '', '', true, 0, false, __('First day of the week'));
$table->data[4][1] = print_input_text("url_updatemanager", $config["url_updatemanager"], '', 35, 255, true, __('URL update manager'));
$table->data[5][0] = print_input_text("loginhash_pwd", $config["loginhash_pwd"], '', 30, 255, true, __('Loginhash password'));
$table->data[5][1] = print_checkbox("access_protocol", 1, $config["access_protocol"], true, __('Enable HTTPS access'));
$table->data[6][0] = print_input_text("access_port", $config["access_port"], '', 10, 255, true, __('Access port') . print_help_tip(__("Leave blank to use default port (80)"), true));
$table->data[6][1] = print_input_text("access_public", $config["access_public"], '', 30, 50, true, __('Public access to server') . print_help_tip(__("Public IP or name for the server, for example (23.45.67.3 or mydomain.com)"), true));
$csv_standard_encoding = !isset($config['csv_standard_encoding']) ? false : (bool) $config['csv_standard_encoding'];
$table->data[7][0] = print_label(__('CSV encoding type'), '', '', true);
$table->data[7][0] .= __('Excel') . '&nbsp;' . print_radio_button('csv_standard_encoding', 0, '', $csv_standard_encoding, true);
$table->data[7][0] .= print_help_tip(__("The Excel type may not be compatible with other applications"), true);
$table->data[7][0] .= '&nbsp;&nbsp;' . __('Other') . '&nbsp;' . print_radio_button('csv_standard_encoding', 1, '', $csv_standard_encoding, true);
$table->data[7][1] = print_checkbox("enable_update_manager", 1, $config["enable_update_manager"], true, __('Enable update manager updates'));
$table->data[8][0] = print_input_text("max_direct_download", $config["max_direct_download"], '', 10, 255, true, __('Maximum direct download size (MB)'));
$table->data[8][1] = print_input_text("max_file_size", $config["max_file_size"], '', 10, 255, true, __('Max. Upload file size'));
echo "<form name='setup' method='post'>";
print_table($table);
echo "<div class='button-form'>";
print_input_hidden('update', 1);
print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"');
echo "</div>";
echo '</form>';
?>

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

<script type="text/javascript">
$(document).ready (function () {
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:setup.php

示例3: feedback_reset_course_form

/** 
 * Called by course/reset.php and shows the formdata by coursereset.
 * it prints checkboxes for each feedback available at the given course
 * there are two checkboxes: 1) delete userdata and keep the feedback 2) delete userdata and drop the feedback
 * @param object $course
 * @return void
 */
function feedback_reset_course_form($course)
{
    echo get_string('resetting_feedbacks', 'feedback');
    echo ':<br />';
    if (!($feedbacks = get_records('feedback', 'course', $course->id, 'name'))) {
        return;
    }
    foreach ($feedbacks as $feedback) {
        echo '<p>';
        echo get_string('name', 'feedback') . ': ' . $feedback->name . '<br />';
        print_checkbox(FEEDBACK_RESETFORM_RESET . $feedback->id, 1, true, get_string('resetting_data', 'feedback'), '', '');
        echo '<br />';
        print_checkbox(FEEDBACK_RESETFORM_DROP . $feedback->id, 1, false, get_string('drop_feedback', 'feedback'), '', '');
        echo '</p>';
    }
}
开发者ID:nadavkav,项目名称:MoodleTAO,代码行数:23,代码来源:lib.php

示例4: voicepresentation_reset_course_form

/**
* Implementation of the function for printing the form elements that control
* whether the course reset functionality affects the chat.
* @param $mform form passed by reference
*/
function voicepresentation_reset_course_form($course)
{
    $currentProduct = "voicepresentation";
    $activities = get_record("voicepresentation", "course", $course->id);
    if ($activities) {
        if ($currentProduct != "voicepodcaster") {
            print_checkbox('reset_content_voicepresentation_replies', 1, false, get_string("voicepresentation_reset_only_replies", 'voicepresentation'), '', "if (this.checked) {document.getElementsByName('reset_content_voicepresentation')[0].disabled = 'true'} else {document.getElementsByName('reset_content_voicepresentation')[0].disabled=''}");
            echo '<br />';
        }
        print_checkbox('reset_content_voicepresentation', 1, false, get_string("voicepresentation_reset_all", 'voicepresentation'), '', "if (this.checked ) {document.getElementsByName('reset_content_voicepresentation_replies')[0].disabled = 'true'} else {document.getElementsByName('reset_content_voicepresentation_replies')[0].disabled=''}");
        echo '<br />';
    } else {
        echo "There is not Voice Presentation in this course";
    }
}
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:20,代码来源:lib.php

示例5: array

     $min_stock = $object["min_stock"];
     $show_in_list = $object["show_in_list"];
 }
 /*if ($id == -1) {
 		echo "<h3>".__('Create a new object')."</h3>";
 	} else {
 		echo "<h3>".__('Update existing object')."</h3>";
 	}*/
 $table->width = '99%';
 $table->class = 'search-table-button';
 $table->colspan = array();
 $table->colspan[3][0] = 2;
 $table->data = array();
 $table->data[0][0] = print_input_text('name', $name, '', 45, 100, true, __('Name'));
 $table->data[0][1] = '<label>' . __('Show in tree view') . print_help_tip(__('If this value is checked this object type will appear as a root inside inventory\'s tree view.'), true) . '</label>';
 $table->data[0][1] .= print_checkbox('show_in_list', 1, $show_in_list, __('Show in tree view'));
 $files = list_files('images/objects/', "png", 1, 0);
 $table->data[1][0] = print_select($files, 'icon', $icon, '', __('None'), "", true, false, false, __('Icon'));
 $table->data[1][0] .= objects_get_icon($id, true);
 $table->data[1][1] = print_input_text('min_stock', $min_stock, '', 45, 100, true, __('Min. stock'));
 $table->data[2][0] = print_textarea('description', 10, 50, $description, '', true, __('Description'));
 $table->colspan[2][0] = 2;
 if ($id == -1) {
     $button = print_submit_button(__('Create'), 'crt_btn', false, 'class="sub next"', true);
     $button .= print_input_hidden('insert_object', 1, true);
 } else {
     $button = print_submit_button(__('Update'), 'upd_btn', false, 'class="sub upd"', true);
     $button .= print_input_hidden('id', $id, true);
     $button .= print_input_hidden('update_object', 1, true);
 }
 $table->data[3][0] = $button;
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:manage_objects.php

示例6: print_checkbox

// Various checkboxes
$table->data[3][0] = print_checkbox ('have_cost', 1, $have_cost, true,
	__('Have cost'));
$table->data[3][1] = print_checkbox ('public', 1, $public, true, __('Public'));

if (! $id_workunit) {
	$table->data[4][0] = print_checkbox ('forward', 1, 
		false, true, __('Forward') . print_help_tip (__('If this checkbox is activated, propagation will be forward'), true));
	
	$table->data[4][1] = print_checkbox ('split', 1, false, true, 
		__('Backward')  . print_help_tip (__('If this checkbox is activated, propagation will be backward'),
		true));
}

$table->data[5][0] = print_checkbox ('work_home', 1, $work_home, true, __('Work from home'));

$table->data[6][0] = print_textarea ('description', 10, 30, $description,
	'', true, __('Description'));

echo '<form id="single_task_form" method="post" onsubmit="return validate_single_form()">';
print_table ($table);

$button = '';
echo '<div style="width:100%;">';
	unset($table->data);
	$table->width = '100%';
	$table->class = "button-form";
	if ($id_workunit) {
		$button = print_input_hidden ('operation', 'update', true);
		$button .= print_input_hidden ('id_workunit', $id_workunit, true);
开发者ID:articaST,项目名称:integriaims,代码行数:30,代码来源:user_spare_workunit.php

示例7: print_label

if ($editor) {
    $table_advanced->data[0][0] = print_label(__('Editor'), '', '', true, $editor);
} else {
    $table_advanced->data[0][0] = "&nbsp;";
}
if ($has_im && $create_incident) {
    $groups = get_user_groups($config['id_user'], "IW");
    $table_advanced->data[0][1] = print_select($groups, "id_group_creator", $id_grupo_incident, '', '', 0, true, false, false, __('Creator group'), $blocked_incident);
} elseif ($create_incident) {
    $table_advanced->data[0][1] = print_label(__('Creator group'), '', '', true, dame_nombre_grupo($id_grupo_incident));
} elseif ($id_group_creator) {
    $table_advanced->data[0][1] = print_label(__('Creator group'), '', '', true, dame_nombre_grupo($id_group_creator));
}
if ($has_im) {
    $table_advanced->data[0][2] = print_checkbox_extended('sla_disabled', 1, $sla_disabled, $blocked_incident, '', '', true, __('SLA disabled'));
    $table_advanced->data[1][0] = print_checkbox("email_notify_form", 1, $email_notify, true, __('Notify changes by email '), $blocked_incident);
} else {
    $table_advanced->data[0][2] = print_input_hidden('sla_disabled', 0, true);
    $table_advanced->data[1][0] = print_input_hidden('email_notify', 1, true);
}
$parent_name = $id_parent ? __('Ticket') . ' #' . $id_parent : __('None');
if ($has_im) {
    $table_advanced->data[3][0] = print_input_text('search_parent', $parent_name, '', 10, 100, true, __('Parent ticket'), $blocked_incident);
    $table_advanced->data[3][0] .= print_input_hidden('id_parent', $id_parent, true);
    if (!$blocked_incident) {
        $table_advanced->data[3][0] .= print_image("images/cross.png", true, array("onclick" => "clean_parent_field()", "style" => "cursor: pointer"));
    }
}
// Show link to go parent incident
if ($id_parent) {
    $table_advanced->data[3][0] .= '&nbsp;<a target="_blank" href="index.php?sec=incidents&sec2=operation/incidents/incident_dashboard_detail&id=' . $id_parent . '"><img src="images/go.png" /></a>';
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:incident_detail.php

示例8: user_search_result

function user_search_result($filter, $ajax, $size_page, $offset, $clickin, $search_text, $disabled_user, $level, $group, $from_tickets = false)
{
    global $config;
    if ($filter != 0) {
        $offset = $filter['offset'];
        $search_text = $filter['search_text'];
        $disabled_user = $filter['disabled_user'];
        $level = $filter['level'];
        $group = $filter['group'];
    }
    $search = "WHERE 1=1 ";
    if ($search_text != "") {
        $search .= " AND (id_usuario LIKE '%{$search_text}%' OR comentarios LIKE '%{$search_text}%' OR nombre_real LIKE '%{$search_text}%' OR direccion LIKE '%{$search_text}%')";
    }
    if ($disabled_user > -1) {
        $search .= " AND disabled = {$disabled_user}";
    }
    if ($level > -10) {
        $search .= " AND nivel = {$level}";
    }
    if ($group == -1) {
        $search .= " AND tusuario.id_usuario NOT IN (select id_usuario from tusuario_perfil)";
    } else {
        if ($group > 0) {
            $search .= " AND tusuario.id_usuario = ANY (SELECT id_usuario FROM tusuario_perfil WHERE id_grupo = {$group})";
        }
    }
    $query1 = "SELECT * FROM tusuario {$search} ORDER BY id_usuario";
    if ($from_tickets) {
        $query1 = users_get_allowed_users_query($config['id_user'], $filter);
    }
    $count = get_db_sql("SELECT COUNT(id_usuario) FROM tusuario {$search} ");
    $sql1 = "{$query1} LIMIT {$offset}, " . $size_page;
    echo "<div class='divresult'>";
    pagination($count, "index.php?sec=users&sec2=godmode/usuarios/lista_usuarios&search_text=" . $search_text . "&disabled_user=" . $disabled_user . "&level=" . $level . "&group=" . $group, $offset, true);
    $resq1 = process_sql($sql1);
    if (!$resq1) {
        echo ui_print_error_message(__("No users"), '', true, 'h3', true);
    } else {
        echo '<table width="100%" class="listing">';
        if ($filter == 0) {
            echo '<th>' . print_checkbox('all_user_checkbox', 1, false, true);
            echo '<th title="' . __('Enabled/Disabled') . '">' . __('E/D');
            echo '<th title="' . __('Enabled login') . '">' . __('Enabled login');
        }
        echo '<th>' . __('User ID');
        echo '<th>' . __('Name');
        echo '<th>' . __('Company');
        echo '<th>' . __('Last contact');
        echo '<th>' . __('Profile');
        if ($filter == 0) {
            echo '<th>' . __('Delete');
        }
        // Init vars
        $nombre = "";
        $nivel = "";
        $comentarios = "";
        $fecha_registro = "";
        if ($resq1) {
            foreach ($resq1 as $rowdup) {
                $nombre = $rowdup["id_usuario"];
                $nivel = $rowdup["nivel"];
                $realname = $rowdup["nombre_real"];
                $fecha_registro = $rowdup["fecha_registro"];
                $avatar = $rowdup["avatar"];
                if ($rowdup["nivel"] == 0) {
                    $nivel = "<img src='images/group.png' title='" . __("Grouped user") . "'>";
                } elseif ($rowdup["nivel"] == 1) {
                    $nivel = "<img src='images/integria_mini_logo.png' title='" . __("Administrator") . "'>";
                } else {
                    $nivel = "<img src='images/user_gray.png' title='" . __("Standalone user") . "'>";
                }
                $disabled = $rowdup["disabled"];
                $id_company = $rowdup["id_company"];
                $enabled_login = $rowdup["enable_login"];
                echo "<tr>";
                if ($filter == 0) {
                    echo "<td>";
                    echo print_checkbox_extended("user-" . $rowdup["id_usuario"], $rowdup["id_usuario"], false, false, "", "class='user_checkbox'", true);
                    echo "<td>";
                    if ($disabled == 1) {
                        echo "<img src='images/lightbulb_off.png' title='" . __("Disabled") . "'> ";
                    }
                    echo "<td>";
                    if ($enabled_login == 1) {
                        echo "<img src='images/accept.png' title='" . __("Enabled login") . "'> ";
                    } else {
                        echo "<img src='images/fail.png' title='" . __("Disabled login") . "'> ";
                    }
                }
                echo "<td>";
                if ($filter == 0) {
                    echo "<a href='index.php?sec=users&sec2=godmode/usuarios/configurar_usuarios&update_user=" . $nombre . "'>" . ucfirst($nombre) . "</a>";
                } else {
                    $url = "javascript:loadContactUser(\"" . $nombre . "\",\"" . $clickin . "\");";
                    echo "<a href='" . $url . "'>" . ucfirst($nombre) . "</a>";
                }
                echo "<td style=''>" . $realname;
                $company_name = (string) get_db_value('name', 'tcompany', 'id', $id_company);
                echo "<td>" . $company_name . "</td>";
//.........这里部分代码省略.........
开发者ID:articaST,项目名称:integriaims,代码行数:101,代码来源:functions_user.php

示例9: get_cached_data

}
$cache_data = get_cached_data($cache_sec, $cache_args);
if ($cache_data && !$refresh_cache) {
    $cache_data = unserialize($cache_data);
    $last_update = $cache_data['last_update'];
    $row_array = $cache_data['row_array'];
} else {
    $row_array = get_error_wus();
    $last_update = time();
    $cache_data = array('last_update' => $last_update, 'row_array' => $row_array);
    set_cached_data($cache_sec, serialize($cache_data), $cache_args);
}
echo "<br/>";
echo "<form method=\"get\" action=\"errorwus.php\">\n";
print_checkbox("Hide canceled WUs", "hide_canceled", $hide_canceled);
print_checkbox("Hide WUs with only d/l errors", "hide_dlerr", $hide_dlerr);
if ($appid) {
    echo "<input type=\"hidden\" name=\"appid\" value=\"{$appid}\"/>";
}
echo "<input type=\"hidden\" name=\"level\" value=\"{$notification_level}\"/>";
echo "<input class=\"btn btn-default\" type=\"submit\" value=\"OK\">\n";
echo "</form>\n";
echo "Page last updated " . time_str($last_update);
if (!in_rops()) {
    echo "<form action=\"cancel_workunits_action.php\" method=\"post\">\n";
    echo "<input type=\"hidden\" name=\"back\" value=\"errorwus\"/>";
}
echo "<br/><table border=\"1\">\n";
echo "<tr><th>WU ID</th><th>WU name</th><th>App ID</th><th>Quorum</th><th>Unsent</th><th>In Progress</th><th>Success</th>";
echo "<th>Download Errors</th><th>Compute Errors</th><th>Validate Errors</th><th>Error mask</th></tr>\n";
$hidden = 0;
开发者ID:aggroskater,项目名称:boinc,代码行数:31,代码来源:errorwus.php

示例10: array

 $table->width = '99%';
 $table->colspan = array();
 $table->colspan[4][0] = 2;
 $table->data = array();
 if ($new_contract || $id && ($write_permission || $manage_permission)) {
     $table->class = 'search-table-button';
     $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][0] = print_company_autocomplete_input($params);
     $table->data[0][1] = print_input_text('name', $name, '', 40, 100, true, __('Contract name'));
     $table->data[1][0] = print_input_text('contract_number', $contract_number, '', 40, 100, true, __('Contract number'));
     $table->data[1][1] = print_checkbox('private', '1', $private, true, __('Private')) . print_help_tip(__("Private contracts are visible only by users of the same company"), true);
     $table->data[2][0] = print_input_text('date_begin', $date_begin, '', 15, 20, true, __('Begin date'));
     $table->data[2][1] = print_input_text('date_end', $date_end, '', 15, 20, true, __('End date'));
     if ($id_company) {
         $table->data[3][0] .= "&nbsp;&nbsp;<a href='index.php?sec=customers&sec2=operation/companies/company_detail&id={$id_company}'>";
         $table->data[3][0] .= "<img src='images/company.png'></a>";
     }
     $table->data[3][1] = print_select(get_contract_status(), 'status', $status, '', '', '', true, 0, false, __('Status'));
     $table->data[4][0] = print_textarea("description", 14, 1, $description, '', true, __('Description'));
     // Optional file update
     $html = "";
     $html .= "<div id=\"contract_files\" class=\"fileupload_form\" method=\"post\" enctype=\"multipart/form-data\">";
     $html .= "<div id=\"drop_file\" style=\"padding:0px 0px;\">";
     $html .= "<table width=\"99%\">";
     $html .= "<td width=\"45%\">";
     $html .= __('Drop the file here');
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:contract_detail.php

示例11: get_font_files

function get_font_files()
{
    global $config;
    $base_dir = $config['homedir'] . '/include/fonts';
    $files = list_files($base_dir, ".ttf", 1, 0);
    $retval = array();
    foreach ($files as $file) {
        $retval[$config['homedir'] . 'include/fonts/' . $file] = $file;
    }
    return $retval;
}
$fontlist = get_font_files();
$flash_options = array();
$flash_options[0] = "Disabled";
$flash_options[1] = "Enabled";
$table->data[0][1] = print_checkbox('flash_charts', $flash_options, $config["flash_charts"], true, __('Enable flash charts'));
$table->data[1][1] = print_select($fontlist, 'pdffont', $config["pdffont"], '', '', '', true, 0, true, __('Font for PDF'));
$table->data[2][1] = print_select($fontlist, 'font', $config["font"], '', '', '', true, 0, true, __('Font for graphs'));
$table->data[3][1] = print_input_text("fontsize", $config["fontsize"], '', 3, 5, true, __('Graphics font size'));
$button = print_input_hidden('update', 1, true);
$button .= print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"', true);
echo "<form name='setup' method='post'>";
print_table($table);
echo "<div class='button-form'>";
echo $button;
echo "</div>";
echo '</form>';
?>

<script type="text/javascript">
$(document).ready (function () {
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:setup_visual.php

示例12: reduce_athelete

 function reduce_athelete($in, $athelete)
 {
     global $COURSE, $CFG;
     // If the teacher has set grade to pass, we need to test
     // this user's final grade with it
     $user_grade = get_record('grade_grades', 'itemid', $this->courseitem->id, 'userid', $athelete->moodleid);
     $class = passing_grade($this->courseitem, $user_grade);
     $label = '<a class="' . $class . '" href="' . $CFG->wwwroot . '/grade/report/user/index.php?id=' . $COURSE->id . '&amp;userid=' . $athelete->moodleid . '">' . fullname($athelete) . ' <span class="athlete_grade">' . simple_grade_format_gradevalue($user_grade->finalgrade, $this->courseitem, true) . '</span></a>';
     $inter = empty($in) ? '' : $in;
     return $inter . '<div class="block_athelete_reporting_row">' . print_checkbox('user_' . $athelete->id, 1, false, $label, '', '', true) . '</div>';
 }
开发者ID:rrusso,项目名称:EARS,代码行数:11,代码来源:block_athelete_reporting.php

示例13: voiceauthoring_reset_course_form

/**
 * For version < 1.9
* Implementation of the function for printing the form elements that control
* whether the course reset functionality affects the chat.
* @param $mform form passed by reference
*/
function voiceauthoring_reset_course_form($course)
{
    $activities = get_record("voiceauthoring", "course", $course->id);
    if ($activities) {
        print_checkbox('reset_content_voiceauthoring', 1, false, "Delete all messages", '', "");
        echo '<br />';
    } else {
        echo "There is not Voice Authoring in this course";
    }
}
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:16,代码来源:lib.php

示例14: array

$table->colspan[1][0] = 6;
$table->colspan[2][0] = 6;
$table->data = array();
$table->size = array();
$table->style = array();
$table->style[0] = 'vertical-align: top; padding-top: 20px;';
$table->style[1] = 'vertical-align: top; padding-top: 20px;';
$table->style[2] = 'vertical-align: top;';
$table->style[3] = 'vertical-align: top;';
$table->style[4] = 'vertical-align: top;';
$table->style[5] = 'vertical-align: top;';
$table->data[0][0] = print_image('images/calendar_orange.png', true) . '&nbsp' . print_mysql_timestamp(0, "Y-m-d");
$table->data[0][1] = print_image('images/clock_orange.png', true) . '&nbsp' . print_mysql_timestamp(0, "H:i:s");
//$table->data[0][2] = combo_roles (1, 'id_profile', __('Profile'), true);
$table->data[0][2] = print_select($roles, 'id_profile', '', '', '', '', true, false, true, __('Profile'));
$table->data[0][3] = print_input_text("duration", $config["pwu_defaultime"], '', 7, 10, true, __('Time used'));
$table->data[0][4] = print_checkbox('have_cost', 1, false, true, __('Have cost'));
$table->data[0][5] = print_checkbox('public', 1, true, true, __('Public'));
$table->data[1][0] = print_textarea('nota', 10, 70, '', "style='resize:none;'", true, __('Description'));
$button = '<div style="width: 100%; text-align: right; padding-bottom: 20px;">';
$button .= '<span id="sending_data" style="display: none;">' . __('Sending data...') . '<img src="images/spinner.gif" /></span>';
$button .= print_submit_button(__('Add'), 'addnote', false, 'class="sub create"', true);
$button .= print_input_hidden('insert_workunit', 1, true);
$button .= print_input_hidden('id', $id_workorder, true);
$button .= '</div>';
$table->data[2][0] = $button;
echo '<form id="form-add-workunit" method="post" action="index.php?sec=projects&sec2=operation/workorders/wo&operation=view&tab=wu&id=' . $id_workorder . '&tab=wu">';
echo "<div style='width: 98%; padding-left: 7px;'>";
print_table($table);
echo "</div>";
echo "</form>";
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:wo_workunits.php

示例15: print_label

	$table_advanced->data[0][0] = print_label (__('Editor'), '', '', true, $editor);
} else {
	$table_advanced->data[0][0] = "&nbsp;";
}

if ($has_im && $create_incident){
    $groups = get_user_groups ($config['id_user'], "IW");
	$table_advanced->data[0][1] = print_select ($groups, "id_group_creator", $id_grupo_incident, '', '', 0, true, false, false, __('Creator group'), $blocked_incident);
} elseif ($create_incident) {
	$table_advanced->data[0][1] = print_label (__('Creator group'), '', '', true, dame_nombre_grupo ($id_grupo_incident));
} elseif ($id_group_creator) {
	$table_advanced->data[0][1] = print_label (__('Creator group'), '', '', true, dame_nombre_grupo ($id_group_creator));
}

if ($has_im || give_acl ($config['id_user'], $id_grupo, "SI")){
	$table_advanced->data[0][2] = print_checkbox ('sla_disabled', 1, $sla_disabled,	true, __('SLA disabled'), $blocked_incident);

} else {
	$table_advanced->data[0][2] = print_input_hidden ('sla_disabled', 0, true);
}

$parent_name = $id_parent ? (__('Ticket').' #'.$id_parent) : __('None');

if ($has_im || give_acl ($config['id_user'], $id_grupo, "SI")) {
	
	$table_advanced->data[3][0] = print_input_text ('search_parent', $parent_name, '', 10, 100, true, __('Parent ticket'), $blocked_incident);
	$table_advanced->data[3][0] .= print_input_hidden ('id_parent', $id_parent, true);

	if (!$blocked_incident) {
		$table_advanced->data[3][0] .= "&nbsp;&nbsp;<a href='javascript: parent_search_form(\"\", $id)'>" . print_image('images/add.png', true, array('title' => __('Add'))) . "</a>";
		$table_advanced->data[3][0] .= print_image("images/cross.png", true, array("onclick" => "clean_parent_field()", "style" => "cursor: pointer"));
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:incident_detail.php


注:本文中的print_checkbox函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。