/**
 * Get template name
 * 
 * @author Fawaz Tahir <*****@*****.**>
 * @param array $tem
 * @return string
 */
function get_template_name($tem)
{
    return get_template_detail($tem, 'name');
}
Example #2
0
        get_survey_display_framework();
        break;
    case 'get_survey':
        get_survey();
        break;
    case 'savetemplate':
        save_template();
        break;
    case 'saveresponse':
        save_response();
        break;
    case 'get_surveys':
        get_surveys();
        break;
    case 'gettemplatedetail':
        get_template_detail();
        break;
    case 'markcomplete':
        mark_complete();
        break;
    case 'get_templates':
        get_templates();
        break;
    case 'save_selection':
        save_selection();
        break;
    default:
        echo "fell through switch with action = {$action}";
}
function delete_template()
{