本文整理汇总了PHP中box::box_columns_end方法的典型用法代码示例。如果您正苦于以下问题:PHP box::box_columns_end方法的具体用法?PHP box::box_columns_end怎么用?PHP box::box_columns_end使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类box
的用法示例。
在下文中一共展示了box::box_columns_end方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COUNT
// License in database and we want to delete it
if (!strcmp($del_license, 'warning')) {
// You've got another chance before it's deleted ;-)
// We inform the administrator how many
// projects will be affected by this deletion
$db->query("SELECT COUNT(*) FROM developing WHERE " . "license='{$license}'");
$db->next_record();
$number_of_projects = $db->f('COUNT(*)');
$be->box_full($t->translate('Warning!'), $t->translate('If you press another time the ' . 'Delete-button you will alter') . ' ' . $number_of_projects . ' ' . $t->translate('projects that have ' . 'actually license') . ' ' . $license);
$bx->box_begin();
$bx->box_title($t->translate('Delete License'));
$bx->box_body_begin();
$bx->box_columns_begin(2);
$bx->box_column('left', '76%', '', '<b>' . $t->translate('License') . '</b>: ' . $license);
$bx->box_column('right', '12%', '', html_form_action('PHP_SELF') . html_form_hidden('license', $license) . html_form_hidden('del_license', 'too_late') . html_form_submit($t->translate('Delete')) . html_form_end());
$bx->box_columns_end();
$bx->box_body_end();
$bx->box_end();
$bx->box_body_end();
$bx->box_end();
} else {
$db->query("DELETE from licenses WHERE license='{$license}'");
$bx->box_full($t->translate('Administration'), $t->translate('Deletion succesfully completed.'));
}
} else {
if (empty($new_license) && empty($new_url) && empty($del_license)) {
// It's already in our database
// but no rename and no deletion and no new url... ->error
$be->box_full($t->translate('Error'), $t->translate('That license already exists!'));
}
}
示例2: mktimestamp
$pquery["pmessid"] = $db->f("pmessid");
$blist->box_column("center", "", $bgcolor, html_link("pmess_show.php", $pquery, $db->f("pmesssubject")));
$pmessfrom = $db->f("pmessfrom");
$pmessfrom = ereg_replace("mailto:", "", $pmessfrom);
$blist->box_column("center", "", $bgcolor, $pmessfrom);
$timestamp = mktimestamp($db->f("pmesstime"));
$blist->box_column("center", "", $bgcolor, timestr_short($timestamp));
htmlp_form_action("pmess_edit.php", array(), "POST");
htmlp_form_hidden("pmessid", $db->f("pmessid"));
$blist->box_column("center", "", $bgcolor, html_form_submit($t->translate("Reply"), ""));
$bgcolor = "gold";
htmlp_form_end();
htmlp_form_action("pmess_manage.php", array(), "POST");
htmlp_form_hidden("pmessid", $db->f("pmessid"));
htmlp_form_hidden("option", "delete");
$blist->box_column("center", "", $bgcolor, html_form_submit($t->translate("Delete"), ""));
htmlp_form_end();
$blist->box_next_row_of_columns();
$bgcolor = "gold";
}
$blist->box_columns_end();
$blist->box_body_end();
$blist->box_end();
$db->query("UPDATE pmessages SET pmessstatus='unread' WHERE pmessstatus='new' AND pmessto='{$username}'");
}
?>
<!-- end content -->
<?php
require "./include/footer.inc";
@page_close();