Exemplo n.º 1
0
function submit_add_detail($config)
{
    $categoryId = $_POST['categoryId'];
    $detail = $_POST['detail'];
    $time = mktime($_POST['detail_form_time_hour'], $_POST['detail_form_time_minute'], $_POST['detail_form_time_second'], $_POST['detail_form_time_month'], $_POST['detail_form_time_day'], $_POST['detail_form_time_year']);
    $amount = $_POST['amount'];
    $description = $_POST['description'];
    return add_detail($config, $categoryId, $detail, $time, $amount, $description);
}
Exemplo n.º 2
0
 case 'add_tags':
     $result = add_tags($data);
     break;
 case 'remove_tags':
     $result = remove_tags($data);
     break;
 case 'bookmark_reference':
     $result = bookmark_references($data);
     break;
 case 'bookmark_and_tag':
 case 'bookmark_and_tags':
     //save collection of ids with some tag
     $result = bookmark_and_tag_record_ids($data);
     break;
 case 'add_detail':
     $result = add_detail($data);
     break;
 case 'replace_detail':
     $result = replace_detail($data);
     break;
 case 'delete_detail':
     $result = delete_detail($data);
     break;
 case 'set_ratings':
     $result = set_ratings($data);
     break;
 case 'save_search':
     $result = save_search($data);
     break;
 case 'bookmark_tag_and_ssearch':
     //from saveCollectionPopup.html   NOT USED SINCE 2012-02-13