コード例 #1
0
<?php

include_once "config/include.php";
include_once "application/model/xml_conversion_model.php";
include_once "application/model/workflow_model.php";
include_once "application/model/tasks_model.php";
include_once "application/model/xmltoxml_model.php";
$taskObj = new Tasks();
$selDes = $taskObj->getXmlDestination();
$selSou = $taskObj->getXmlSource();
// Get Configuration List Dropdown
$wfObj = new ConversionModel();
$selOpt = $wfObj->getConfigurationList();
$xmlObj = new XmlConversionModel();
$selOpt1 = $xmlObj->getxmlConfigurationList();
// Work Flow Id
if (isset($_GET['id']) and is_numeric($_GET['id'])) {
    $wfId['id'] = $_GET['id'];
    $workFlow = new WorkFlow();
    $wfData = $workFlow->getWFById($wfId);
}
// Task ID
if (isset($_GET['tid']) and is_numeric($_GET['tid'])) {
    $wftId = $_GET['tid'];
    $tID = '&tid=' . $wftId;
    // Task Class Object
    $wfTaskObj = new Tasks();
    $wfTaskList = $wfTaskObj->getWFTaskById($wftId);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Now determine in which directory to operate
コード例 #2
0
<?php

include_once "../model/xml_conversion_model.php";
include_once '../../config/include.php';
// Create conversion class object
$conversionConfiguration = new ConversionModel();
// Check for configuration
if (isset($_REQUEST['newconfig']) and $_REQUEST['selctconfig'] == '') {
    $saveConfig['newconfig'] = $_REQUEST['newconfig'];
    if (trim($saveConfig['newconfig']) != '') {
        $chkConfig = $conversionConfiguration->cntConfiguration($saveConfig);
        if ($chkConfig > 0) {
            echo "Configuration name already exist.";
            die;
        }
    } else {
        echo "Please select configuration.";
        die;
    }
}
// Check for file name
if ($_REQUEST['filename'] == '') {
    echo "Please upload a file.";
    die;
}
if (!empty($_REQUEST['tablename'])) {
    $tableName = $_REQUEST['tablename'];
} else {
    $tableName = 'table';
}
// Get Text File Data and Loop through the data