Sindbad~EG File Manager

Current Path : /home/numerotech/test-abs.numerotech.com/common_abs_v2/core/controller/
Upload File :
Current File : //home/numerotech/test-abs.numerotech.com/common_abs_v2/core/controller/SelectionController.py

from flask import Flask, request, Blueprint, jsonify, redirect, url_for,flash, render_template,session, app,Response
from core.model.BoModel import BoModel
from core.library.helper import Helper
from random import randint
import datetime
from core.library.email import EMAIL
from datetime import timedelta,date,datetime
from .. import Cryptography,Auth,RouteGroup

app = Blueprint('selection', __name__)


@app.route('/view_selection/<conf_id>/<conf_key>/<abs_type>',methods=["GET","POST"])
@app.route('/view_selection/<conf_id>/<conf_key>',methods=["GET","POST"])
@RouteGroup.conf_required
def View_Selection(conf_id,conf_key,abs_type=None):
	selection_type_id = request.values.get("selection_type_id")
	NULL = None
	status_type = 2
	if selection_type_id:
		display_name = BoModel().get_display_selection_type(selection_type_id)
		get_abs_details=BoModel().get_abs_details(abs_type,NULL,NULL,selection_type_id,status_type,NULL,conf_id)
	else:
		display_name = BoModel().get_display_abstracts_type(abs_type)	
		get_abs_details=BoModel().get_abs_details(abs_type,NULL,NULL,NULL,status_type,NULL,conf_id)
	return render_template ('selection/selection_index.html',abs_type=abs_type,data=get_abs_details,conf_id=conf_id,conf_key=conf_key,display_name = display_name,selection_type_id=selection_type_id)
	

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists