コード例 #1
0
function xnppresentationGetAdvancedSearchBlock(&$search_var)
{
    // retrieve blocks of BasicInformation / Preview / IndexKeywords
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnppresentation', $search_var);
    $search_var[] = 'xnppresentation_presentation_type';
    $search_var[] = 'xnppresentation_creator';
    $search_var[] = 'xnppresentation_presentation_file';
    // assign to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    $tpl->assign($xoopsTpl->get_template_vars());
    // variables assigned to xoopsTpl are copied to tpl
    $tpl->assign('presentation_type', array_merge(array('' => 'Any'), xnppresentationGetTypes()));
    $tpl->assign('presentation_type_selected', 'none');
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnppresentation');
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return HTML content
    return $tpl->fetch('db:xnppresentation_search_block.html');
}
コード例 #2
0
function xnpbookGetAdvancedSearchBlock(&$search_var)
{
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnpbook', $search_var);
    $search_var[] = 'xnpbook_author';
    $search_var[] = 'xnpbook_editor';
    $search_var[] = 'xnpbook_publisher';
    $search_var[] = 'xnpbook_isbn';
    $search_var[] = 'xnpbook_book_pdf';
    // set to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    $tpl->assign($xoopsTpl->get_template_vars());
    // copy variables in $xoopsTpl to $tpl
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnpbook');
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return as HTML
    return $tpl->fetch('db:xnpbook_search_block.html');
}
コード例 #3
0
function xnpconferenceGetAdvancedSearchBlock(&$search_var)
{
    // get BasicInformation / Preview / IndexKeywords block
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnpconference', $search_var);
    $search_var[] = 'xnpconference_presentation_type';
    $search_var[] = 'xnpconference_conference_title';
    $search_var[] = 'xnpconference_place';
    $search_var[] = 'xnpconference_author';
    $search_var[] = 'xnpconference_abstract';
    // set to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    // copy variables in $xoopsTpl to $tpl
    $tpl->assign($xoopsTpl->get_template_vars());
    $tpl->assign('presentation_type', array_merge(array('' => 'Any'), xnpconferenceGetTypes()));
    $tpl->assign('presentation_type_selected', 'none');
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnpconference');
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return as HTML
    return $tpl->fetch('db:xnpconference_search_block.html');
}
コード例 #4
0
function xnpmodelGetAdvancedSearchBlock(&$search_var)
{
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnpmodel', $search_var);
    $search_var[] = 'xnpmodel_model_type';
    $search_var[] = 'xnpmodel_creator';
    $search_var[] = 'xnpmodel_caption';
    $search_var[] = 'xnpmodel_model_file';
    // set to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    // copy variables in $xoopsTpl to $tpl
    $tpl->assign($xoopsTpl->get_template_vars());
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnpmodel');
    $model_type = xnpmodel_get_type_array();
    $tpl->assign('model_type_option', $model_type);
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return as HTML
    return $tpl->fetch('db:xnpmodel_search_block.html');
}
コード例 #5
0
function xnpfilesGetAdvancedSearchBlock(&$search_var)
{
    // get BasicInformation / Preview / IndexKeywords block
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnpfiles', $search_var);
    $data_file_name = xnpfilesGetAttachmentFilenameAdvancedSearchBlock('data_file_name');
    $data_file_mimetype = xnpfilesGetAttachmentMimetypeAdvancedSearchBlock('data_file_mimetype');
    $data_file_filetype = xnpfilesGetAttachmentFiletypeAdvancedSearchBlock('data_file_filetype');
    $search_var[] = 'data_file_mimetype';
    $search_var[] = 'data_file_filetype';
    $search_var[] = 'xnpfiles_data_file';
    // set to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    // copy variables in $xoopsTpl to $tpl
    $tpl->assign($xoopsTpl->get_template_vars());
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnpfiles');
    $tpl->assign('data_file_name', $data_file_name);
    $tpl->assign('data_file_mimetype', $data_file_mimetype);
    $tpl->assign('data_file_filetype', $data_file_filetype);
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return as HTML
    return $tpl->fetch('db:xnpfiles_search_block.html');
}
コード例 #6
0
function xnppaperGetAdvancedSearchBlock(&$search_var)
{
    // retrieve blocs of BasicInformation / IndexKeywords
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnppaper', $search_var);
    $search_var[] = 'xnppaper_author';
    $search_var[] = 'xnppaper_journal';
    $search_var[] = 'xnppaper_volume';
    $search_var[] = 'xnppaper_number';
    $search_var[] = 'xnppaper_page';
    $search_var[] = 'xnppaper_pubmed_id';
    $search_var[] = 'xnppaper_paper_pdf_reprint';
    // assign to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    // variables assigned to xoopsTpl are copied to $tpl
    $tpl->assign($xoopsTpl->get_template_vars());
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnppaper');
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return HTML
    return $tpl->fetch('db:xnppaper_search_block.html');
}
コード例 #7
0
function xnpsimulatorGetAdvancedSearchBlock(&$search_var)
{
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnpsimulator', $search_var);
    $search_var[] = 'xnpsimulator_simulator_type';
    $search_var[] = 'xnpsimulator_developer';
    $search_var[] = 'xnpsimulator_caption';
    // assign to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    // variables assigned to xoopsTpl are copied to tpl
    $tpl->assign($xoopsTpl->get_template_vars());
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnpsimulator');
    $simulator_type = xnpsimulator_get_type_array();
    $tpl->assign('simulator_type_option', $simulator_type);
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return HTML content
    return $tpl->fetch('db:xnpsimulator_search_block.html');
}
コード例 #8
0
function xnpurlGetAdvancedSearchBlock(&$search_var)
{
    // retrieve blocks of BasicInformation / Preview / IndexKeywords
    $basic = xnpGetBasicInformationAdvancedSearchBlock('xnpurl', $search_var);
    $search_var[] = 'xnpurl_url';
    $search_var[] = 'xnpurl_url_banner_file';
    // assign to template
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    // variables assigned to xoopsTpl are copied to tpl
    $tpl->assign($xoopsTpl->get_template_vars());
    $tpl->assign('basic', $basic);
    $tpl->assign('module_name', 'xnpurl');
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return HTML content
    return $tpl->fetch('db:xnpurl_search_block.html');
}
コード例 #9
0
function xnpbinderGetAdvancedSearchBlock(&$search_var)
{
    global $xoopsTpl;
    $tpl = new XoopsTpl();
    $tpl->assign($xoopsTpl->get_template_vars());
    // copy variables in $xoopsTpl to $tpl
    $tpl->assign('basic', xnpGetBasicInformationAdvancedSearchBlock('xnpbinder', $search_var));
    $tpl->assign('module_name', 'xnpbinder');
    $tpl->assign('module_display_name', xnpGetItemTypeDisplayNameByDirname(basename(dirname(dirname(__FILE__))), 's'));
    // return as HTML
    return $tpl->fetch('db:xnpbinder_search_block.html');
}