コード例 #1
0
$table->table_column(html_form_textField('username', $db->f('username'), 20, 32), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('password', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Confirm Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('cpassword', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Real Name') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('realname', $db->f('realname'), 20, 64), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('E-mail') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('email_usr', $db->f('email_usr'), 20, 128), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Creation') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('creation_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Last Modification') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('modification_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Permisions') . ':</b>', '50%', '', 'right');
$table->table_column($db->f('perms'), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_colspan(html_form_submit(_('Change'), 'u_edit'), 2, '', 'center');
$table->table_columns_end();
htmlp_form_hidden('u_id', $db->f('user_id'));
htmlp_form_end();
$table->table_body_end();
$table->table_end();
config_inc('end');
コード例 #2
0
} else {
    $iter *= 10;
}
// WISH: have a navigation bar with the different options
// 1a Section
search_for_section($search);
// 1b Category
search_for_categories($search);
// 2. Exact match
$count = search_for_exact_match($search);
// 3. Search parameters for the apps
// TODO: there are no such parameters yet
// 4a Partial Match in the name (single word match)
$count += search_for_partial_match_single_word($search, $count);
// 4b Partial Match in the name
$count += search_for_partial_match($search, $count);
// 5. Global match in the despcription
$count += search_for_match_in_description($search, $count);
// 6. Partial Match in the description
$count += search_for_partial_match_in_description($search, $count);
// TODO: if nothing is found: advanced search
search_nothing_found($count);
// TODO: Search in Google, Freshmeat, developer.berlios, sourceforge, savannah, icewalk
/*
// Debugging info to know what the array contains
for ($i=0; $i<sizeof($array_with_already)+1; $i++) {
    print $array_with_already[$i].'<br>';
}
*/
config_inc('pie');