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


PHP row1函数代码示例

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


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

示例1: show_admins

function show_admins($user, $teamid)
{
    page_head("Add or remove Team Admins");
    echo "\n\t\tYou can select team members as 'Team Admins'.\n\t\tTeam Admins can:\n\t\t<ul>\n\t\t<li>Edit team information (name, URL, description, country).</li>\n\t\t<li>View the team's join/quit history.</li>\n\t\t<li>Moderate the team forum, if any (admins get emails notification of moderation events and red X reports).</li>\n\t\t</ul>\n\t\tTeam Admins cannot:\n\t\t<ul>\n\t\t<li>Change the team founder.</li>\n\t\t<li>Remove members.</li>\n\t\t<li>Add or remove Team Admins.</li>\n\t\t</ul>\n\t\tIf a Team Admin quits the team, they cease to be a Team Admin.\n\t\t<p>\n\t\tWe recommend that you select only people\n\t\tyou know and trust very well as Team Admins.\n\t";
    $admins = BoincTeamAdmin::enum("teamid={$teamid}");
    start_table();
    if (count($admins) == 0) {
        row1("There are currently no Team Admins");
    } else {
        row1("Current Team Admins", 3);
        table_header("Name", "Became Team Admin on", "");
        foreach ($admins as $admin) {
            show_admin($user, $admin);
        }
    }
    end_table();
    echo '
		<p>
		<form action="team_admins.php">
		<input type="hidden" name="action" value="add">
		<input type="hidden" name="teamid" value="$teamid">
	';
    echo form_tokens($user->authenticator);
    start_table();
    row1("Add Team Admin");
    row2('Email address of team member:', '<input name="email_addr">');
    row2('', '<input type="submit" action value="Add">');
    end_table();
    echo "</form>";
    page_tail();
}
开发者ID:Turante,项目名称:boincweb,代码行数:31,代码来源:team_admins.php

示例2: show_admins

function show_admins($user, $teamid)
{
    page_head(tra("Add or remove Team Admins"));
    echo tra("You can select team members as 'Team Admins'. Team Admins can:") . "\n        <ul>\n        <li>" . tra("Edit team information (name, URL, description, country)") . "\n        <li>" . tra("View the team's join/quit history") . "\n        <li>" . tra("Moderate the team forum, if any (admins get email notification of moderation events and red X reports)") . "\n        </ul>\n        " . tra("Team Admins cannot:") . "\n        <ul>\n        <li>" . tra("Change the team founder") . "\n        <li>" . tra("Remove members") . "\n        <li>" . tra("Add or remove Team Admins") . "\n        </ul>\n        " . tra("If a Team Admin quits the team, they cease to be a Team Admin.") . "\n        <br /><br />" . tra("We recommend that you select only people you know and trust very well as Team Admins.");
    $admins = BoincTeamAdmin::enum("teamid={$teamid}");
    start_table();
    if (count($admins) == 0) {
        row1(tra("There are currently no Team Admins"));
    } else {
        row1(tra("Current Team Admins"), 3);
        table_header(tra("Name"), tra("Became Team Admin on"), "");
        foreach ($admins as $admin) {
            show_admin($user, $admin);
        }
    }
    end_table();
    echo "\n        <p>\n        <form action=team_admins.php>\n        <input type=hidden name=action value=add>\n        <input type=hidden name=teamid value={$teamid}>\n    ";
    echo form_tokens($user->authenticator);
    start_table();
    row1(tra("Add Team Admin"));
    row2(tra("Email address of team member:"), "<input name=email_addr>");
    row2("", "<input type=submit action value=\"" . tra("Add") . "\">");
    end_table();
    echo "</form>";
    page_tail();
}
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:26,代码来源:team_admins.php

示例3: user_permissions_form

function user_permissions_form()
{
    global $special_user_bitfield;
    page_head('Manage user privileges');
    start_table();
    row1("Current special users", 99);
    echo "<tr><th>User</th>";
    for ($i = 0; $i < S_NFLAGS; $i++) {
        echo "<th>" . $special_user_bitfield[$i] . "</th>\n";
    }
    echo "<th> </th></tr>";
    $result = _mysql_query("SELECT prefs.userid, prefs.special_user, user.id, user.name \n        FROM forum_preferences as prefs, user \n        WHERE CONVERT(special_user, DECIMAL) > 0 and prefs.userid=user.id");
    $i = 0;
    while ($foo = _mysql_fetch_object($result)) {
        echo "<tr class=row{$i}>\n            <td>{$foo->name} ({$foo->id})</td>\n            <form action=\"user_permissions.php\" method=\"POST\">\n            <input type=\"hidden\" name=\"userid\" value=\"{$foo->userid}\">\n        ";
        for ($j = 0; $j < S_NFLAGS; $j++) {
            $bit = substr($foo->special_user, $j, 1);
            $c = $bit == 1 ? "checked" : "";
            echo "<td>\n                <input type=\"checkbox\" name=\"role" . $j . "\" value=\"1\" {$c}>\n                </td>\n            ";
        }
        echo "<td><input class=\"btn btn-default\" type=\"submit\" value=\"Update\"></td>";
        echo "</form></tr>\n";
        $i = 1 - $i;
    }
    echo "\n        <tr class=row{$i}>\n        <form action=\"user_permissions.php\" method=\"POST\">\n        <td>Add User ID:<input type=\"text\" name=\"userid\" size=\"6\"></td>\n    ";
    for ($j = 0; $j < S_NFLAGS; $j++) {
        echo "<td>\n            <input type=\"checkbox\" name=\"role" . $j . "\" value=\"1\">\n            </td>\n        ";
    }
    echo "<td>\n        <input class=\"btn btn-default\" type=\"submit\" value=\"Update\">\n        </td>\n        </form>\n        </tr>\n    ";
    end_table();
    page_tail();
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:32,代码来源:user_permissions.php

示例4: show_hav

function show_hav($hav)
{
    row1(av_desc($hav->app_version_id));
    row2(tra("Number of tasks completed"), $hav->et_n);
    row2(tra("Max tasks per day"), $hav->max_jobs_per_day);
    row2(tra("Number of tasks today"), $hav->n_jobs_today);
    row2(tra("Consecutive valid tasks"), $hav->consecutive_valid);
    $x = number_format($hav->turnaround_avg / 86400, 2);
    if ($hav->et_avg) {
        $gflops = number_format(1.0E-9 / $hav->et_avg, 2);
        row2(tra("Average processing rate"), $gflops . " GFLOPS");
    }
    row2(tra("Average turnaround time"), "{$x} days");
}
开发者ID:maexlich,项目名称:boinc-igemathome,代码行数:14,代码来源:host_app_versions.php

示例5: user_settings

function user_settings()
{
    global $user;
    $flags = $user->bolt->flags;
    echo "<form action=bolt_admin.php method=get>\n\t\t<input type=hidden name=action value=update_user>\n\t";
    start_table();
    row1("User settings");
    $x = $flags & BOLT_FLAGS_SHOW_ALL ? "checked" : "";
    row2("Show hidden courses?", "<input type=checkbox name=show_all {$x}>");
    $x = $flags & BOLT_FLAGS_DEBUG ? "checked" : "";
    row2("Show debugging output?", "<input type=checkbox name=debug {$x}>");
    row2("", "<input type=submit name=submit value=\"Update settings\">");
    end_table();
    echo "</form>";
}
开发者ID:Turante,项目名称:boincweb,代码行数:15,代码来源:bolt_admin.php

示例6: user_settings

function user_settings()
{
    global $user;
    $flags = $user->bossa->flags;
    echo "<form action=bossa_admin.php method=get>\n        <input type=hidden name=action value=update_user>\n    ";
    start_table();
    row1("User settings");
    $x = $flags & BOLT_FLAGS_SHOW_ALL ? "checked" : "";
    row2("Show hidden apps?", "<input type=checkbox name=show_all {$x}>");
    $x = $flags & BOLT_FLAGS_DEBUG ? "checked" : "";
    row2("Show debugging output?", "<input type=checkbox name=debug {$x}>");
    row2("", "<input class=\"btn btn-default\" type=submit value=\"Update user\">");
    end_table();
    echo "</form>";
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:15,代码来源:bossa_admin.php

示例7: search_form

function search_form()
{
    page_head("User search");
    echo "<form name=f method=get action=user_search.php>\n        <input type=hidden name=action value=search>\n    ";
    start_table();
    row1(tra("Filters"), 2, "heading");
    row2(tra("User name starts with"), "<input type=text name=search_string>");
    row2_init(tra("Country"), "<select name=country><option value=\"any\" selected>" . tra("Any") . "</option>");
    print_country_select("asdf");
    echo "</select></td></tr>";
    row2(tra("With profile?"), "<input type=radio name=profile value=either checked=1> " . tra("Either") . "\n        <input type=radio name=profile value=no> " . tra("No") . "\n        <input type=radio name=profile value=yes> " . tra("Yes") . "\n    ");
    row2(tra("On a team?"), "<input type=radio name=team value=either checked=1> " . tra("Either") . "\n        <input type=radio name=team value=no> " . tra("No") . "\n        <input type=radio name=team value=yes> " . tra("Yes") . "\n    ");
    row1(tra("Ordering"), 2, "heading");
    row2(tra("Decreasing sign-up time"), "<input type=radio name=search_type value=\"date\" checked>");
    row2(tra("Decreasing average credit"), "<input type=radio name=search_type value=\"rac\">");
    row2(tra("Decreasing total credit"), "<input type=radio name=search_type value=\"total\">");
    row2("", "<input type=submit name=action value=" . tra("Search") . ">");
    end_table();
    echo "\n        <script>document.f.search_string.focus()</script>\n    ";
    page_tail();
}
开发者ID:maexlich,项目名称:boinc-igemathome,代码行数:21,代码来源:user_search.php

示例8: showTableStatus

function showTableStatus($db)
{
    $size = 0;
    $out = "";
    start_table();
    row1($db, 15);
    row_array(array("Name", "Engine", "Version", "Row Format", "Rows", "Avg Row Length (KB)", "Data Length (MB)", "Max Data Length (MB)", "Index Length (MB)", "Data free (MB)", "Create Time", "Update Time", "Check Time", "Create Options", "Comment"));
    _mysql_select_db($db);
    $result = _mysql_query("show table status");
    while ($row = _mysql_fetch_array($result)) {
        $size += $row["Data_length"] + $row["Index_length"];
        $engine = $row["Engine"];
        if (!$engine) {
            $engine = $row["Type"];
        }
        row_array(array($row["Name"], $engine, $row["Version"], $row["Row_format"], $row["Rows"], round($row["Avg_row_length"] / 1024, 2), round($row["Data_length"] / (1024 * 1024), 2), round($row["Max_data_length"] / (1024 * 1024), 2), round($row["Index_length"] / (1024 * 1024), 2), round($row["Data_free"] / (1024 * 1024), 2), $row["Create_time"], $row["Update_time"], $row["Check_time"], $row["Create_options"], $row["Comment"]));
    }
    $size = round($size / 1024 / 1024, 1);
    row2("Total Table Sizes (MB)", $size);
    end_table();
    echo "<BR><BR>";
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:22,代码来源:sample_table_stats.php

示例9: show_manage_user_form

function show_manage_user_form($user)
{
    global $special_user_bitfield;
    $Nbf = sizeof($special_user_bitfield);
    admin_page_head("Management {$user->name}");
    if (!defined("POST_REPORT_EMAILS")) {
        echo "<p><font color='RED'>\n       There is no administrative email address defined for reporting problems\n    or abuse in the forums.  Please define POST_REPORT_EMAILS in project.inc\n            </font></p>\n";
    }
    echo "<form name='manage_user' action=manage_user.php method='POST'>\n        <input type='hidden' name='userid' value='" . $user->id . "'>\n    ";
    start_table();
    row1("<b>User: </b> {$user->name} <div align='right'>\n            <input name=\"delete_user\" type=\"submit\" value=\"Delete user\">\n            </div>");
    show_user_summary_public($user);
    show_profile_link_ops($user);
    row2("Email:", "{$user->email_addr}");
    project_user_summary($user);
    end_table();
    project_user_page_private($user);
    echo "</form>\n";
    // Special User status:
    echo "\n\n<P>\n       <table width='100%'><tr>\n       <td width='50%' valign='TOP'> \n";
    echo "<form name='special_user' action=manage_user.php method=\"POST\">\n        <input type='hidden' name='userid' value='" . $user->id . "'>\n    ";
    start_table();
    row1("Special User Status");
    echo "<tr>\n";
    for ($i = 0; $i < $Nbf; $i++) {
        $bit = substr($user->prefs->special_user, $i, 1);
        echo "<tr><td><input type='checkbox'' name='special_user_" . $i . "' value='1'";
        if ($bit == 1) {
            echo " checked='checked'";
        }
        echo ">" . $special_user_bitfield[$i] . "</td></tr>\n";
    }
    echo "</tr>";
    echo "</tr><td colspan={$Nbf} align='RIGHT'>\n        <input name='special_user' type='SUBMIT' value='Update'>\n        </td></tr>\n    ";
    end_table();
    echo "</form>\n";
    echo "\n\n</td><td valign='TOP'>\n\n";
    // Suspended posting privileges
    echo "<form name='banishment' action=manage_user.php method=\"POST\">\n        <input type='hidden' name='userid' value='" . $user->id . "'>\n    ";
    start_table();
    row1("Suspension");
    if ($user->prefs->banished_until) {
        $dt = $user->prefs->banished_until - time();
        if ($dt > 0) {
            $x = " Suspended until " . time_str($user->prefs->banished_until) . "<br/> (Expires in " . time_diff($dt) . ")";
        } else {
            $x = " last suspended " . time_str($user->prefs->banished_until);
        }
        row1($x);
    } else {
        $dt = 0;
    }
    echo "<tr><td>\n    Suspend user for:\n     <blockquote>\n            <input type='radio' name='suspend_for' value='3600'> 1 hour   <br/>\n            <input type='radio' name='suspend_for' value='7200'> 2 hours  <br/>\n            <input type='radio' name='suspend_for' value='18000'> 6 hours  <br/>\n            <input type='radio' name='suspend_for' value='36000'> 12 hours  <br/>\n            <input type='radio' name='suspend_for' value='86400'> 24 hours  <br/>\n    ";
    echo "\n        <input type='radio' name='suspend_for' value='172800'> 48 hours  <br/>\n        <input type='radio' name='suspend_for' value='", 86400 * 7, "'> 1 week  <br/>\n        <input type='radio' name='suspend_for' value='", 86400 * 14, "'> 2 weeks  <br/>\n    ";
    if ($dt > 0) {
        echo "\n            <input type='radio' name='suspend_for' value='-1'>  <b>unsuspend</b>   <br/>";
    }
    echo "\n     </blockquote>\n\n    ";
    echo "<P>Reason (required):\n";
    echo "<textarea name='suspend_reason' cols='40' rows='4'></textarea>";
    echo "<br><font size='-2' >The reason will be sent to both the user\n            and to the project administrators.</font>\n";
    echo "<p align='RIGHT'><input name='suspend_submit' type='SUBMIT' value='Update'></P>\n";
    echo " </td></tr>\n";
    end_table();
    echo "</form>\n";
    echo "</td></tr> </table>\n";
    admin_page_tail();
}
开发者ID:entibasse,项目名称:superhost,代码行数:68,代码来源:manage_user.php

示例10: show_team_forum_title

        break;
    case 1:
        show_team_forum_title($forum, $thread);
        break;
}
if ($preview == tra("Preview")) {
    $options = null;
    echo "<h2>" . tra("Preview") . "</h2>\n";
    echo "<div class=pm_preview>";
    echo output_transform($content, $options);
    echo "</div>\n";
}
echo "<form action=\"forum_edit.php?id=" . $post->id . "\" method=\"POST\" name=\"post\" onsubmit=\"return checkForm(this)\">\n";
echo form_tokens($logged_in_user->authenticator);
start_table();
row1(tra("Edit your message"));
if ($can_edit_title) {
    //If this is the user can edit the thread title display a way of doing so
    if ($preview) {
        row2(tra("Title") . html_info(), "<input type=\"text\" name=\"title\" value=\"" . htmlspecialchars($title) . "\">");
    } else {
        row2(tra("Title") . html_info(), '<input type="text" name="title" value="' . htmlspecialchars($thread->title) . '">');
    }
}
if ($preview) {
    row2(tra("Message") . html_info() . post_warning(), $bbcode_html . "<textarea name=\"content\" rows=\"12\" cols=\"80\" class=\"message_field\">" . htmlspecialchars($content) . "</textarea>");
} else {
    row2(tra("Message") . html_info() . post_warning(), $bbcode_html . '<textarea name="content" rows="12" cols="80" class="message_field">' . htmlspecialchars($post->content) . '</textarea>');
}
if ($post->signature) {
    $enable_signature = "checked=\"true\"";
开发者ID:CalvinZhu,项目名称:boinc,代码行数:31,代码来源:forum_edit.php

示例11: page_head

page_head('Banishment Vote');
echo "<form action=\"forum_banishment_vote_action.php?userid=" . $userid . "\" method=\"POST\">\n";
echo form_tokens($logged_in_user->authenticator);
start_table();
row1("Banishment Vote");
if (get_str('action') == "start") {
    if (!$user) {
        error_page("no user");
    }
    $x = $user->banished_until;
    if ($x > time()) {
        error_page("User is already banished");
    }
    //display input that selects reason
    echo "<input type=hidden name=action value=start>";
    echo "<input type=\"hidden\" name=\"userid\" value=\"" . $userid . "\">\n";
    row1("Are you sure you want to banish " . $user->name . "?\n\t\tThis will prevent " . $user->name . " from posting for chosen time period.<br />\n\t\tIt should be done only if " . $user->name . "\n\t\thas consistently exhibited trollish behavior.");
    row2("", "Select the reason category, optionally write a longer description of why the user should be banished.");
    row2("Category", "<select name=\"category\">\n\t<option value=\"1\">Obscene</option>\n\t<option value=\"2\">Flame/Hate mail</option>\n\t<option value=\"3\">User Request</option>\n\t<option value=\"4\">Other</option>\n</select>");
    row2("Reason<br>Mailed if nonempty", "<textarea name=\"reason\" rows=\"10\" cols=\"80\"></textarea>");
    row2("", "<input type=\"submit\" name=\"submit\" value=\"Proceed with vote\">");
} elseif (get_str('action') == "yes") {
    vote_yes($config, $logged_in_user, $user);
} elseif (get_str('action') == "no") {
    vote_no($config, $logged_in_user, $user);
} else {
    error_page("Unknown action");
}
end_table();
echo "</form>";
page_tail();
开发者ID:Turante,项目名称:boincweb,代码行数:31,代码来源:forum_banishment_vote.php

示例12: uotd_thumbnail

    $user = BoincUser::lookup_id($profile->userid);
    echo uotd_thumbnail($profile, $user);
    echo user_links($user) . "<br>";
    $resp = output_transform($profile->response1);
    $resp = sanitize_tags($resp);
    echo sub_sentence($resp, ' ', 150, true);
}
echo "</td></tr>";
row1(tra("User Profile Explorer"));
echo "<tr><td>\n    <ul>\n    <li>" . tra("View the %1User Picture Gallery%2.", "<a href=\"" . URL_BASE . "user_profile/user_gallery_1.html\">", "</a>") . "</li>\n    <li>" . tra("Browse profiles %1by country%2.", "<a href=\"" . URL_BASE . "user_profile/profile_country.html\">", "</a>") . "</li>\n    <li>" . tra("Browse profiles %1at random%2, %3at random with pictures%2, or %4at random without pictures%2.", "<a href=\"?cmd=rand&amp;pic=-1\">", "</a>", "<a href=\"?cmd=rand&amp;pic=1\">", "<a href=\"?cmd=rand&amp;pic=0\">") . "</li>\n";
if (file_exists(PROFILE_PATH . "profile_alpha.html")) {
    echo "<li>" . tra("Alphabetical profile listings:") . "<br>";
    include PROFILE_PATH . "profile_alpha.html";
}
echo "</ul></td></tr>";
row1(tra("Search profile text"));
rowify("\n    <form action=\"profile_search_action.php\" method=\"GET\">\n    <input type=\"text\" name=\"search_string\">\n    <input type=\"submit\" value=\"" . tra("Search") . "\">\n    </form>\n");
end_table();
page_tail();
function select_profile($cmd)
{
    // Request for a random profile.
    //
    if ($cmd == "rand") {
        $profiles = array();
        $pic = get_int('pic');
        if ($pic == 0) {
            $profiles = BoincProfile::enum("has_picture=0", "limit 1000");
        } else {
            if ($pic == 1) {
                $profiles = BoincProfile::enum("has_picture=1", "limit 1000");
开发者ID:maexlich,项目名称:boinc-igemathome,代码行数:31,代码来源:profile_menu.php

示例13: show_team_forum_title

        break;
    case 1:
        show_team_forum_title($forum, $thread);
        break;
}
if ($preview == tra("Preview")) {
    $options = null;
    echo '<div id="preview">\\n';
    echo '<div class="header">' . tra("Preview") . '</div>\\n';
    echo output_transform($content, $options);
    echo "</div>\n";
}
echo '<form action="forum_edit.php?id=' . $post->id . '" method="POST">\\n';
echo form_tokens($logged_in_user->authenticator);
start_table();
row1("Edit your message");
if ($can_edit_title) {
    //If this is the user can edit the thread title display a way of doing so
    if ($preview) {
        row2(tra("Title") . html_info(), '<input type="text" name="title" value="' . htmlspecialchars($title) . '">');
    } else {
        row2(tra("Title") . html_info(), '<input type="text" name="title" value="' . htmlspecialchars($thread->title) . '">');
    }
}
if ($preview) {
    row2(tra("Message") . html_info() . post_warning(), '<textarea name="content" rows="12" cols="80">' . htmlspecialchars($content) . '</textarea>');
} else {
    row2(tra("Message") . html_info() . post_warning(), '<textarea name="content" rows="12" cols="80">' . htmlspecialchars($post->content) . '</textarea>');
}
if ($post->signature) {
    $enable_signature = "checked=\"true\"";
开发者ID:Turante,项目名称:boincweb,代码行数:31,代码来源:forum_edit.php

示例14: get_str

    $forumid = get_str("forumid");
}
$forumlist = "<option value=\"-1\">" . tra("All") . "</option>";
$categories = BoincCategory::enum();
foreach ($categories as $category) {
    $forums = BoincForum::enum("parent_type=0 and category={$category->id}");
    foreach ($forums as $forum) {
        if ($forum->id == $forumid) {
            $forumlist .= "<option selected value=\"" . $forum->id . "\">" . $forum->title . "</option>";
        } else {
            $forumlist .= "<option value=\"" . $forum->id . "\">" . $forum->title . "</option>";
        }
    }
}
row2(tra("Forum") . "<br />\n    <span class=\"smalltext\">" . tra("Only display posts from this forum") . "</span>", '<select name="search_forum">' . $forumlist . '</select');
$sortlist = null;
foreach ($thread_sort_styles as $id => $style) {
    if ($id == CREATE_TIME_NEW) {
        $sortlist .= "<option selected value=\"" . $id . "\">" . $style . "</option>";
    } else {
        $sortlist .= "<option value=\"" . $id . "\">" . $style . "</option>";
    }
}
row2(tra("Sort by"), '<select name="search_sort">' . $sortlist . '</select');
row1("&nbsp;");
row2("", "<input type=\"submit\" value=\"" . tra("Start the search") . "\">");
echo "</form>";
end_table();
page_tail();
$cvs_version_tracker[] = "\$Id\$";
//Generated automatically - do not edit
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:31,代码来源:forum_search.php

示例15: row1

        } else {
            $cancelacionTrabajos = false;
        }
    } else {
        $tablaParametros[$name] = $value;
    }
}
if ($cancelacionTrabajos == true) {
    row1("Work Canceling .", '9');
    foreach ($tablaParametros as $work_id => $alias) {
        $salida = shell_exec('cd ../..;bin/cancel_jobs ' . $work_id . ' ' . $work_id . ' >> /tmp/php.out 2>>/tmp/php.out ');
        $result = mysql_query("delete from user_workunit where workunit_id = " . $work_id);
        row2("Canceled Work " . $work_id, $alias);
    }
} else {
    row1("Data Deleting.", '9');
    $contador = 1;
    foreach ($tablaParametros as $work_id => $name) {
        //echo "key : " . $key . " value : " . $value . "<br/>";
        $pathBorrado = "../../sample_results/";
        $fichero0 = $pathBorrado . $name . "_0.gz";
        $fichero1 = $pathBorrado . $name . "_1.gz";
        $salida = shell_exec('rm -f ' . $fichero0 . " " . $fichero1);
        row2("Deleted File", $fichero0);
        row2("Deleted File", $fichero1);
        $result = mysql_query("delete from user_workunit where workunit_id = " . $work_id);
        $contador += 1;
    }
    row2("", " Deleted Database References ");
}
end_table();
开发者ID:rampxxxx,项目名称:em,代码行数:31,代码来源:emListTaskFormAction.php


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