示例#1
0
文件: pages.php 项目: NazarK/timedesk
function WebPageTitle()
{
    if (self_q() == "p") {
        $t = PageTitle(arg(0));
        if ($t) {
            return "{$t} - ";
        } else {
            return "";
        }
    } else {
        return "";
    }
}
示例#2
0
function ItemEditor($ItemID, $ViewMode)
{
    global $_COOKIE, $_SESSION, $page_title, $ItemSection, $ItemEditorSections, $resists, $root_url, $Return, $ShowTitle, $icons_dir, $SpecIncludes, $ItemEditorSectionsDesc;
    require_once './modules/ItemEditor/ajax/js.php';
    require_once 'modules/ItemEditor/constants_ie.php';
    $page_title = "Item Edit";
    $Return .= $SpecIncludes . '<title>' . $page_title . '</title>';
    // Editor Music Options
    if ($_SESSION['IEMusic'] == 1) {
        $Return .= "<div id='Music'><embed src=\"images/001130031538.wav\" hidden=\"true\" autostart=\"true\" loop=\"true\" type=\"application/x-mplayer2\"/></div>";
    } else {
        $Return .= "<div id='Music'></div>";
    }
    $result = mysql_query("SELECT * FROM items WHERE id = '" . $ItemID . "';");
    if (!$result) {
        $Return .= 'Could not run query: ' . mysql_error();
        exit;
    }
    echo '<style>
				.section_header{
					background-color: #fcf8e3;
					border-color: #faebcc;
					color: #8a6d3b;
				}
			</style>';
    ### Loop through item fields
    ### Automatically Generate the column names from the Table
    $columns = mysql_num_fields($result);
    $Item_Name = mysql_result($result, 0, 2);
    $Return .= '<h2>' . $Item_Name . '</h2><small>All changes are not saved until the "Save" button has been pressed.<br>Items can be copied by simple changing the Item ID to a free unassigned ID in the database using the form below</small><hr>';
    $Return .= '
			<form method="POST" id="frmMain" action="min.php?Mod=IE" class="customForm" style="display:inline;">
			<table><tr>
			<td><button type="submit" value="Save" 			class="btn green"><i class="fa fa-save"></i> Save</button></td>
			<td><button type="button" value="Preview Item" 	class="btn yellow" ' . HoverTip("global.php?item_view=" . $ItemID) . '><i class="fa fa-check-square-o"></i> Preview</button></td>
			<td><button type="button" value="Reload Page" 	class="btn blue" onclick="location.reload(false);"><span aria-hidden="true" class="icon-reload"></span> Reload Page</button></td>
			<td><button type="button" value="Auto Scaler" 	class="btn red" onclick="AutoScaler();"><span aria-hidden="true" class="icon-plus"></span> Auto Scaler</button></td>
			</tr></table> ';
    for ($i = 0; $i < $columns; $i++) {
        if ($Debug) {
            echo 'dbg1<br>';
        }
        $FClass = "";
        $FieldName = mysql_field_name($result, $i);
        $FieldNameLabel = $ITD[$FieldName][1];
        if ($FieldNameLabel == False) {
            $FieldNameLabel = $FieldName;
        }
        //Exchange the Field name for the Array field name
        /* Field Data */
        $FieldData = mysql_result($result, 0, $i);
        if ($FieldData == "") {
            $FieldData = $ITD[$FieldName][0];
        }
        if ($FieldName == "Name") {
            PageTitle($ItemID . ": " . $FieldData);
        }
        $CharCount = strlen($FieldData);
        if ($CharCount < 5) {
            $CharCount = 5;
        }
        if ($ITD[$FieldName][2] == False) {
            $InputTitle = "";
        } else {
            $InputTitle = "title='" . $ITD[$FieldName][2] . "' class='form-control '";
        }
        /* Define the Array to Store all Input Fields */
        $FieldKey = $ItemSection[$FieldName][0];
        if ($FieldKey == '') {
            $FieldKey = 'misc';
        }
        $FI[$FieldKey][$FieldName][0] = $FieldNameLabel;
        $FI[$FieldKey][$FieldName][1] = '<input type="text" name="' . $FieldName . '" id="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' >';
        if ($FieldName == "color") {
            $colHex = dechex($FieldData);
            $colHex = '#' . str_pad($colHex, 6, "0");
            if (strlen($colHex) == 9) {
                $colHex = str_replace('#ff', '', $colHex);
            }
            $FI[$FieldKey][$FieldName][1] = '
				<input type="text" name="' . $FieldName . '" id="' . $FieldName . '" placeholder="#' . $colHex . '" value="#' . $colHex . '" size="' . $CharCount . '" ' . $InputTitle . ' >
				<div id="color_preview" style="background-color:#' . $colHex . ' !important;border: 1px solid #e5e5e5;width:40px;height:40px"></div>';
        }
        $FI[$FieldKey][$FieldName][2] = $FieldName;
        $SpellData = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 1200, 700);'><i class='fa fa-edit'></i> EDIT" . '</a><input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' id="' . $FieldName . '"><a class="btn blue" data-' . $FieldName . '="1" ' . HoverTip("global.php?spell_view=" . $FieldData . "") . '>View</a>';
        $FieldData1 = '<input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' >';
        if ($ItemSection[$FieldName][2] == 0) {
            $FClass = ' class="' . $FieldKey . '" style="display: none"';
        }
        if ($ItemSection[$FieldName][1] != "NO" && $ItemSection[$FieldName][1] != "") {
            $FI[$FieldKey][$FieldName][1] = ItemInputFromArray($FieldName, $ItemSection[$FieldName][1], $FieldData, $InputTitle);
            continue;
        }
        if ($ItemSection[$FieldName][1] != "NO") {
            $CustData = ItemInputFromArray($FieldName, $ItemSection[$FieldName][1], $FieldData, $InputTitle);
        }
        if ($FieldKey == "topinfo") {
            $FI[$FieldKey][$FieldName][1] = '<input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . '>';
            continue;
        }
        if ($FieldName == "id") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 500, 600);'><i class='fa fa-edit'></i> EDIT</a><input type='text' name='" . $FieldName . "' placeholder='" . $FieldData . "' value='" . $FieldData . "' size='" . $CharCount . "' " . $InputTitle . " id=" . $FieldName . ">";
            continue;
        }
        if ($FieldName == "icon") {
            /*if(file_exists("cust_assets/icons/item_" . $FieldData . ".png")){
            			$FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' title='' class='btn btn-default' onClick='IconEdit(". $FieldData. ")'><img src='includes/img.php?type=iconimage&id=" . $FieldData ."'  name='MyIcon' title='Click here to Edit your Icon' valgin='top' align='right'></a>"; 
            			$FI[$FieldKey][$FieldName][1] .= '<input type="text" name="' . $FieldName . '" placeholder="'. $FieldData . '" value="'. $FieldData . '" size="'. $CharCount .'" '. $InputTitle . ' id=icon onchange="UpdateIcon('. $FieldData . ')" >';
            		} continue;*/
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn btn-default' onClick='IconEdit(" . $FieldData . ")'><img class='icon-" . $FieldData . "' name='MyIcon' valgin='top' align='right' width='40px' height='40px'/></a>";
            $FI[$FieldKey][$FieldName][1] .= '<input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' id=icon onchange="UpdateIcon(' . $FieldData . ')" >';
            continue;
        }
        if ($FieldName == "idfile") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' title='' class='btn btn-default ' onClick='IDFileEdit(" . preg_replace('/IT/i', '', $FieldData) . ")'><img src='includes/img.php?type=weaponimage&id=" . preg_replace('/IT/i', '', $FieldData) . "' name='MyIDFile' title='Click here to Edit your Graphic' class=weapongraphic></a>";
            $FI[$FieldKey][$FieldName][1] .= '<input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' id=idfile onchange="UpdateIDFile(' . $FieldData . ')">';
            continue;
        }
        if ($FieldName == "classes") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 1000, 750);'><i class='fa fa-edit'></i> EDIT</a><input type='text' name='" . $FieldName . "' placeholder='" . $FieldData . "' value='" . $FieldData . "' size='" . $CharCount . "' " . $InputTitle . " id=" . $FieldName . ">";
            continue;
        }
        if ($FieldName == "races") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 320, 720);'><i class='fa fa-edit'></i> EDIT</a><input type='text' name='" . $FieldName . "' placeholder='" . $FieldData . "' value='" . $FieldData . "' size='" . $CharCount . "' " . $InputTitle . " id=" . $FieldName . ">";
            continue;
        }
        if ($FieldName == "slots") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 450, 725);'><i class='fa fa-edit'></i> EDIT</a><input type='text' name='" . $FieldName . "' placeholder='" . $FieldData . "' value='" . $FieldData . "' size='" . $CharCount . "' " . $InputTitle . " id=" . $FieldName . ">";
            continue;
        }
        if ($FieldName == "price") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 400, 500);'><i class='fa fa-edit'></i> EDIT</a><input type='text' name='" . $FieldName . "' placeholder='" . $FieldData . "' value='" . $FieldData . "' size='" . $CharCount . "' " . $InputTitle . " id=" . $FieldName . ">";
            continue;
        }
        if ($FieldName == "scrolleffect") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 1200, 700);'>" . '<i class="fa fa-edit"></i> EDIT' . '</a><input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' id="' . $FieldName . '"><a class="btn blue" data-' . $FieldName . '="1" ' . HoverTip("global.php?spell_view=" . $FieldData . "") . '>View</a>';
            continue;
        }
        if ($FieldName == "casttime") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "casttime_") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "recastdelay") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "recasttype") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "maxcharges") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "scrolleffect") {
            $FI[$FieldKey][$FieldName][1] = $SpellData;
            continue;
        }
        if ($FieldName == "scrolltype") {
            $FI[$FieldKey][$FieldName][1] = $CustData;
            continue;
        }
        if ($FieldName == "scrolllevel") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "scrolllevel2") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "scrollname") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "clickeffect") {
            $FI[$FieldKey][$FieldName][1] = $SpellData;
            continue;
        }
        if ($FieldName == "clicklevel") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "clicklevel2") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "clicktype") {
            $FI[$FieldKey][$FieldName][1] = $CustData;
            continue;
        }
        if ($FieldName == "proceffect") {
            $FI[$FieldKey][$FieldName][1] = $SpellData;
            continue;
        }
        if ($FieldName == "proclevel") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "proclevel2") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "procrate") {
            $FI[$FieldKey][$FieldName][1] = $CustData;
            continue;
        }
        if ($FieldName == "proctype") {
            $FI[$FieldKey][$FieldName][1] = $CustData;
            continue;
        }
        if ($FieldName == "worneffect") {
            $FI[$FieldKey][$FieldName][1] = $SpellData;
            continue;
        }
        if ($FieldName == "wornlevel") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "wornlevel2") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "worntype") {
            $FI[$FieldKey][$FieldName][1] = $CustData;
            continue;
        }
        if ($FieldName == "focuseffect") {
            $FI[$FieldKey][$FieldName][1] = $SpellData;
            continue;
        }
        if ($FieldName == "focuslevel") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "focuslevel2") {
            $FI[$FieldKey][$FieldName][1] = $FieldData1;
            continue;
        }
        if ($FieldName == "focustype") {
            $FI[$FieldKey][$FieldName][1] = $CustData;
            continue;
        }
        if ($FieldName == "bardeffect") {
            $FI[$FieldKey][$FieldName][1] = $SpellData;
            continue;
        }
        if ($FieldName == "proceffect" || $FieldName == "focuseffect" || $FieldName == "clickeffect" || $FieldName == "worneffect" || $FieldName == "bardeffect") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 1200, 700);'><i class='fa fa-edit'></i> EDIT</a>" . '<input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' id="' . $FieldName . '"><a class="btn blue" data-' . $FieldName . '="1" ' . HoverTip("global.php?spell_view=" . $FieldData . "") . '>View</a>';
            continue;
        }
        $FDA = '<input type="text" id="' . $FieldName . '" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' >';
        if ($FieldName == "banedmgrace") {
            $FI[$FieldKey][$FieldName][1] = "<a href='javascript:;' class='btn green' onClick='FieldEditGet(\"" . $FieldName . "\", 500, 600);'><i class='fa fa-edit'></i> EDIT</a><input type='text' name='" . $FieldName . "' placeholder='" . $FieldData . "' value='" . $FieldData . "' size='" . $CharCount . "' " . $InputTitle . " >";
            continue;
        }
        if ($FieldKey == "") {
            $FI[''][$FieldName][1] = '<input type="text" name="' . $FieldName . '" placeholder="' . $FieldData . '" value="' . $FieldData . '" size="' . $CharCount . '" ' . $InputTitle . ' >';
            continue;
        }
    }
    /* Array Documentation 
    			$FI
    				Key1 [0] = Field Name Label
    				Key2 [1] = Input Field
    				Key3 [2] = Field Name - Unused?
    			Keyed by:
    				$FieldName][0] = Mysql Field name
    			
    			$ItemEditorSections - Comes from includes/constants.php
    				Used to determine section types 
    		*/
    /* This area handles all of the display of the Item Editor */
    $Tabs = array();
    $Rem = array();
    $n = 1;
    foreach ($ItemEditorSectionsDesc as $val) {
        if (!$Rem[$val]) {
            $Rem[$val] = 1;
            $SID = md5($val);
            $n++;
        }
    }
    $t = 1;
    $TSection = array();
    ksort($FI);
    // Sort the iteration of sections alphabetically...
    foreach ($FI as $value) {
        if ($Debug) {
            echo 'dbg2<br>';
        }
        ksort($value);
        // Sort the iteration of fields aplhabetically...
        #print var_dump($value) . '<br>';
        foreach ($value as $value2) {
            if ($Debug) {
                echo 'dbg5<br>';
            }
            $FClass = "";
            $Style = "";
            $DSection2 = "";
            // The following two IF checks fall under the Misc. category by having no index and are miscellaneous uncategorized fields
            if ($ItemSection[$value2[2]][2] == 0) {
                $FClass = $ItemSection[$value2[2]][0];
                $Style = 'style="display: none"';
            }
            if ($ItemSection[$value2[2]][0] == "misc") {
                $FClass = "Unknown";
                $Style = 'style="display: none"';
            }
            // $DSection is a temp selection identifier
            if ($DSection != $ItemSection[$value2[2]][0]) {
                if ($ItemSection[$value2[2]][0] == "misc") {
                    $DSection2 = "Misc.";
                }
                $FClass = $DSection;
                $FClass .= ' itemheader';
                $DSection = $ItemSection[$value2[2]][0];
                $Section = $ItemEditorSections[$DSection];
                if ($Section == "") {
                    $Section = "Misc.";
                }
                $SID = md5($Section);
                if (!$ItemEditorSectionsDesc[$DSection]) {
                    $Tab = "Misc.";
                } else {
                    $Tab = $ItemEditorSectionsDesc[$DSection];
                }
                $Tabs[$SID][0] .= '<tr><th class="section_header"><h4><i class="fa fa-angle-right"></i> ' . $Tab . '<h4></th><th class="section_header"></th></tr>';
            }
            $FClass .= $DSection;
            $Tabs[$SID][0] .= '<tr class="' . $FClass . '" ' . $Style . '><td style="text-align: right;">' . $value2[0] . '</td><td> ' . $value2[1] . '</td></tr>';
        }
        $t++;
        ### Increment Tab Counts
    }
    // Let's print out these Tabs
    $Return .= '
			  <div class="widget">
				<ul class="tabs">';
    $Rem = array();
    $n = 1;
    foreach ($ItemEditorSections as $val) {
        if ($Debug) {
            echo 'dbg3<br>';
        }
        if (!$Rem[$val]) {
            $Rem[$val] = 1;
            if ($ViewMode == 0) {
                $Return .= '<li><a href="#tab' . $n . '">' . $val . '</a></li>';
            }
            $n++;
        }
    }
    $Return .= '</ul>
					<div class="tab_container">';
    $Rem = array();
    $n = 1;
    if ($ViewMode == 1) {
        $Return .= '<table><tr><td>';
    }
    foreach ($ItemEditorSections as $val) {
        if ($Debug) {
            echo 'dbg4<br>';
        }
        if (!$Rem[$val]) {
            $Rem[$val] = 1;
            if ($ViewMode == 0) {
                $Return .= '<div id="tab' . $n . '" class="tab_content"> <table class="table table-hover table-bordered">' . $Tabs[md5($val)][0] . '</table> </div>';
            }
            if ($ViewMode == 1) {
                $DP[$val] = '<table class="table ">' . $Tabs[md5($val)][0] . '</table>';
                #$Return .= $val . '<table class="table table-hover">' . $Tabs[md5($val)][0] . '</table>';
            }
            $n++;
        }
    }
    if ($ViewMode == 1) {
        $Return .= "<td style='vertical-align: top !important;padding-right: 10px;'>" . $DP['Item Info'] . $DP['Bag Info'] . $DP['Restrictions'] . '</td>' . "<td style='vertical-align: top !important;padding-right: 10px;'>" . $DP['Resists'] . $DP['Statistics'] . '</td>' . "<td style='vertical-align: top !important;padding-right: 10px;'>" . $DP['Weapon'] . $DP['Augmentation'] . $DP['Faction'] . '</td>' . "<td style='vertical-align: top !important;padding-right: 10px;'>" . $DP['Spell Related Data'] . $DP['Misc.'] . '</td>';
        $Return .= '</td></tr></table>';
    }
    $Return .= ' </div> 
			<div class="fix"></div>
		</div>';
    return $Return;
}
示例#3
0
        #############################################################################################
    #############################################################################################
    ################################ DISPLAY THE STATUS SECTION #################################
    #############################################################################################
    case 'status':
        // EDIT OR DELETE USER SETTINGS
        if (isset($_POST['sub']) && isset($_POST['depid'])) {
            if ($_POST['sub'] == 'Delete') {
                $query = "\tDELETE FROM tickets_status\n\t\t\t\t\t\t\tWHERE tickets_status_id = '" . $_POST['depid'] . "'";
                $actiontaken = 'Status Deleted';
            } elseif ($_POST['sub'] == 'Edit') {
                $query = "\tUPDATE tickets_status\n\t\t\t\t\t\t\tSET\n\t\t\t\t\t\t\ttickets_status_name     = '" . $_POST['status'] . "',\n\t\t\t\t\t\t\ttickets_status_order    = '" . $_POST['order'] . "',\n\t\t\t\t\t\t\ttickets_status_color    = '" . $_POST['color'] . "'\n\t\t\t\t\t\t\tWHERE tickets_status_id = '" . $_POST['depid'] . "'";
                $actiontaken = 'Edited';
            }
            $result = sql_query_write($query);
            PageTitle('Status ' . $_POST['depid'] . ' ' . $actiontaken);
        }
        ?>
<table width="<?php 
        echo $maintablewidth;
        ?>
" cellspacing="1" cellpadding="1" class="boxborder" align="<?php 
        echo $maintablealign;
        ?>
">
  <tr bgcolor="#AACCEE">
    <td class="text">Please add in all the details below for the each Urgency.</td>
  </tr>
</table>
<form action="<?php 
        echo $_SERVER['PHP_SELF'];
示例#4
0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Coldwebs V2.0">
<link rel="shortcut icon" href="/uploads/icon.png">
<?php 
PageTitle($Array);
?>
	
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,400italic,700,800' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:300,200,100' rel='stylesheet' type='text/css'>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="http://parallelmagz.com/api/bootstrap/css/bootstrap.min.css" media="all" />
<link rel="stylesheet" type="text/css" href="/admin/theme/cwadmin/header/css/jquery.gritter.css" />
<link rel="stylesheet" href="http://parallelmagz.com/api/font-awesome/css/font-awesome.css" media="all" />
<link rel="stylesheet" type="text/css" href="/admin/theme/cwadmin/header/css/nanoscroller.css" />
<link rel="stylesheet" type="text/css" href="/admin/theme/cwadmin/header/css/coremirror.css">
<link rel="stylesheet" type="text/css" href="/admin/theme/cwadmin/header/css/ambiance.css">
<link rel="stylesheet" type="text/css" href="/admin/theme/cwadmin/header/css/jquery-jvectormap-1.2.2.css"  media="screen"/>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="http://condorthemes.com/flatdream/assets/js/html5shiv.js"></script>
<script src="http://condorthemes.com/flatdream/assets/js/respond.min.js"></script>
<![endif]-->
<!-- Custom styles for this template -->
<link href="/admin/theme/cwadmin/header/css/style.css" rel="stylesheet" />	
    
示例#5
0
<?php

echo '<script type="text/javascript" src="modules/Zone_Tools/ajax/ajax.js"></script>';
PageTitle('Zone Copy/Import/Export');
/* When Connected to a second database... */
if ($_GET['ImportMode'] == 1) {
    echo '<center><br><h2 class="page-title">Select Zone to Import From (2nd DB)</h2><hr>';
    echo '<select onchange="ZoneToolZoneSelect2nd(this.value)">';
    $Query = "SELECT `long_name`, `zoneidnumber`, `short_name` FROM `zone` ORDER BY `zoneidnumber`";
    $QueryResult = mysql_query($Query, $db2);
    while ($row = mysql_fetch_array($QueryResult)) {
        echo '<option value="' . $row['zoneidnumber'] . '">' . $row['long_name'] . ' - (' . $row['zoneidnumber'] . ': ' . $row['short_name'] . ')' . '</option>';
    }
    echo '</select>';
    echo '<div id="ZoneSelect2"></div>';
    echo '<br><br></div> </fieldset>';
} else {
    $ZS = '<select onchange="ZoneToolZoneSelect(this.value)" class="form-control">';
    $Query = "SELECT `long_name`, `zoneidnumber`, `short_name` FROM `zone` ORDER BY `zoneidnumber`";
    $QueryResult = mysql_query($Query, $db);
    while ($row = mysql_fetch_array($QueryResult)) {
        $ZS .= '<option value="' . $row['zoneidnumber'] . '">' . $row['long_name'] . ' - (' . $row['zoneidnumber'] . ': ' . $row['short_name'] . ')' . '</option>';
    }
    $ZS .= '</select>';
    echo FormStart();
    echo FormInput('', '<h2 class="page-title"><i class="fa fa-cloud-upload" style="font-size:30px"></i> Zone Copy/Import<h2><hr>');
    echo FormInput('Step #1: Select Zone', $ZS);
    echo '<div id="ZoneSelect"></div>';
    echo FormEnd();
}
示例#6
0
<?php

/*
    Item Editor Dispatcher Page
    Author: Akkadius
*/
echo '<div id="JSOP"></div>';
/* Javascript to be included at the footer after Jquery */
$FJS .= '<script type="text/javascript" src="modules/ItemEditor/ajax/ajax.js"></script>';
$FJS .= '<script type="text/javascript" src="cust_assets/js/lazy-load.js"></script>';
$FJS .= '<script type="text/javascript" src="cust_assets/js/colpick/js/colpick.js"></script>';
$FJS .= '<link href="cust_assets/js/colpick/css/colpick.css" rel="stylesheet" type="text/css"/>';
$FJS .= "<script type=\"text/javascript\">\n            \$('#color').colpick({\n                layout:'hex',\n                submit:0,\n                colorScheme: 'dark',\n                onChange:function(hsb,hex,rgb,el,bySetColor) {\n                    \$(el).css('border-color','#'+hex);\n                    \$('#color_preview').css('background-color','#'+hex);\n                    // Fill the text box just if the color was set using the picker, and not the colpickSetColor function.\n                    if(!bySetColor) \$(el).val('#'+hex);\n                }\n            }).keyup(function(){\n                \$(this).colpickSetColor(this.value);\n            });\n        </script>";
require_once 'modules/ItemEditor/functions.php';
require_once 'includes/constants.php';
PageTitle("Item Editor");
/* Item Edit */
if (!isset($_SESSION['IEViewMode'])) {
    $_SESSION['IEViewMode'] = 1;
}
if (isset($_GET['Edit'])) {
    echo '<center>';
    echo ItemEditor($_GET['Edit'], $_SESSION['IEViewMode']);
    $FJS .= '<script type="text/javascript">
                $("select").each(function() { $(this).tooltip(); });
                $(":text").each(function() {
                    $(this).css("height", "30px");
                    $(this).tooltip();
                });
                $(":text").each(function() {
                    var value = $(this).val();
示例#7
0
<?php

echo '<div id="JSOP"></div>';
echo '<script type="text/javascript" src="modules/Character/ajax/ajax.js"></script>';
echo '<link rel="stylesheet" type="text/css" href="css/main.css">';
require_once 'includes/constants.php';
require_once 'modules/Character/functions.php';
if (isset($_GET['character_copy'])) {
    PageTitle("Character Copier");
    echo '<h3>Character Copier</h3><hr>';
    echo '
            <table class="table table-striped table-hover table-condensed flip-content table-bordered" style="width:300px">
                <tr>
                    <td>
                        <select onchange="CharacterTool(this.value)" class="form-control">
                            <option value="0">--- Select ---</option>
                            <option value="1">Copy Character</option>
                            <!-- <option value="2">Character Management (BETA)</option> -->
                        </select>
                    </td>
                </tr>
            </table>

            <div id="character_copy_options"></div>
            <div id="character_copy_result"></div>

            <div id="character_search_result"></div>
		';
}
示例#8
0
			}
			.DTFC_LeftBodyWrapper, .DTFC_LeftHeadWrapper{
				-webkit-box-shadow: 3px 1px 4px rgba(0,0,0,0.065);
				-moz-box-shadow: 3px 1px 4px rgba(0,0,0,0.065);
				box-shadow: 3px 1px 4px rgba(0,0,0,0.065);
			}
			html, body {
				overflow: hidden;
			}
			.search_box input, .search_box select{

			}
		</style>';
echo '<link href="cust_assets/js/datatables/media/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>';
echo '<link href="cust_assets/js/datatables/extensions/FixedColumns/css/dataTables.fixedColumns.min.css" rel="stylesheet" type="text/css"/>';
PageTitle('NPC/Zone Editor');
echo '<table>
		<tr>
			<td>
				<table class="table table-striped table-hover table-condensed flip-content table-bordered search_box" style="width:200px !important">
					<tr><td style="text-align:right">Zone</td>			<td>' . GetZoneListSelect($_GET['zone']) . '</td></tr>
					<tr><td style="text-align:right">Instance <br>Version</td>	<td><input class="form-control" type="text" value="' . ($_GET['version'] > 0 ? $_GET['version'] : 0) . '" id="zinstid" title="The Instance Version you wish to see"></td></tr>
					<tr><td style="text-align:right">NPC<br>Name</td>		<td><input type="text" value="' . $_GET['npc_filter'] . '" class="form-control" id="npcname" title="Name of the NPC to Search For" onkeyup="if(event.keyCode == 13){ ShowZone();}"></td></tr>
					<tr>
						<td style="text-align:right">
						</td>
						<td>
							<button type="button" value="Search!" class="btn btn-default green btn-xs" onclick="ShowZone()" title="Click this when you are ready to execute">
								<i class="fa fa-search"></i> Search
							</button>
示例#9
0
    echo '<table class="table table-striped table-bordered table-hover dataTable no-footer" style="width:0">';
    for ($i = 0; $i < $columns; $i++) {
        $FieldName = mysql_field_name($result, $i);
        $FieldData = mysql_result($result, 0, $i);
        if ($spell_ef_acf[$FieldName] != 1) {
            echo '<td style="text-align:center">' . $FieldName . '<br>' . $spell_editor_fields[$FieldName][0] . '</td>';
        }
    }
    echo '</table>';
    $FJS .= '
			<script type="text/javascript">
				$("select").each(function() { $(this).tooltip(); });
				$(":text").each(function() {  $(this).tooltip({ placement: \'bottom\' }); });
			</script>';
} else {
    PageTitle('Spell Search');
    /* Variables */
    $opt = isset($_GET['opt']) ? $_GET['opt'] : '';
    /* Radio Buttons - Only - And Higher - And Lower */
    $c['level'] = isset($c['level']) ? $c['level'] : 0;
    $c['type'] = isset($c['type']) ? $c['type'] : 0;
    $c['effect_type'] = isset($c['effect_type']) ? $c['effect_type'] : -1;
    $c['spell_category'] = isset($c['spell_category']) ? $c['spell_category'] : 0;
    $c['field_filter_1'] = isset($c['field_filter_1']) ? $c['field_filter_1'] : '';
    $c['search_string'] = isset($c['search_string']) ? $c['search_string'] : '';
    $c['npc_category'] = isset($c['npc_category']) ? $c['npc_category'] : -1;
    $c['target_type'] = isset($c['target_type']) ? $c['target_type'] : -1;
    $c['zone_type'] = isset($c['zone_type']) ? $c['zone_type'] : -2;
    $c['resist_type'] = isset($c['resist_type']) ? $c['resist_type'] : -1;
    if ($Value > 0) {
        $opt = 2;
示例#10
0
文件: pages.php 项目: NazarK/sqp
function ContentTitle()
{
    if (self_q() == "p") {
        $t = PageTitle(arg(0));
        return $t;
    } else {
        if (self_q() == "news") {
            return "Новости";
        } else {
            return "";
        }
    }
}
    function Status()
    {
        global $db, $maintablealign, $maintablewidth;
        // EDIT OR DELETE USER SETTINGS
        if (isset($_POST['sub']) && isset($_POST['depid'])) {
            if ($_POST['sub'] == 'Delete') {
                $query = "DELETE FROM nuke_hosting_tickets_status WHERE tickets_status_id = '" . $_POST['depid'] . "'";
                $actiontaken = 'Status Deleted';
            } elseif ($_POST['sub'] == 'Edit') {
                $query = "\tUPDATE nuke_hosting_tickets_status SET tickets_status_name = '" . $_POST['status'] . "', tickets_status_order = '" . $_POST['order'] . "',\r\n\t\t\t\ttickets_status_color = '" . $_POST['color'] . "' WHERE tickets_status_id = '" . $_POST['depid'] . "'";
                $actiontaken = 'Edited';
            }
            $result = $db->sql_query($query);
            PageTitle('Status ' . $_POST['depid'] . ' ' . $actiontaken);
        }
        ?>
	<table width="<?php 
        echo $maintablewidth;
        ?>
" cellspacing="1" cellpadding="1" border="1"  align="<?php 
        echo $maintablealign;
        ?>
">
		<tr bgcolor="#AACCEE">
			<td><p>Please add in all the details below for the each status.</p></td>
		</tr>
	</table>

	<form action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
?op=Support&amp;caseid=status" method="post">
	<table width="<?php 
        echo $maintablewidth;
        ?>
" cellspacing="1" cellpadding="1" border="1"  align="<?php 
        echo $maintablealign;
        ?>
">
		<tr><td><br /><p>Be careful about deleting status's. Deleting them will cause
			errors with all tickets assigned to that particular status. Therefore be careful
			when you add them, make sure they are concise and what you want. Order refers
			to where in the list it will appear, 1 being first.<br /><br />
				<table width="300" cellpadding="0" cellspacing="0" align="center">
					<tr>
						<td><p>Status Name:</p></td>
						<td><input name="firstname" size="30"
<?php 
        if (isset($_POST['userform']) && isset($_POST['firstname']) && $_POST['firstname'] != '') {
            echo ' value="' . $_POST['name'] . '"';
        } else {
            echo ' style="background-color:#FDD3D4"';
            $error = 'T';
        }
        ?>
						> <input type="submit" value="Submit" name="userform" /></td>
				  	</tr>
<?php 
        if (!isset($error)) {
            $query = "\tINSERT INTO nuke_hosting_tickets_status SET tickets_status_name = '" . $_POST['name'] . "'";
            $result = $db->sql_query($query);
            ?>
					<tr>
						<td colspan="2"><p><b>Everythings OK Status added.</b></p></td>
					</tr>
<?php 
        }
        ?>
				</table><br>
			</p></td>
		</tr>
	</table>
	</form>

	<table width="<?php 
        echo $maintablewidth;
        ?>
" cellspacing="1" cellpadding="1" border="1"  align="<?php 
        echo $maintablealign;
        ?>
">
		<tr>
			<td colspan="5" bgcolor="#AACCEE"><p>Status's Already In The System.</p></td>
		</tr><tr>
			<td><p><b>ID.</b></p></td>
			<td><p><b>Status</b></p></td>
			<td><p><b>Order</b></p></td>
			<td><p><b>Color</b></p></td>
			<td><p><b>Action</b></p></td>
		</tr>
<?php 
        // LOOP THROUGH ALL EXISTING USERS IN THE DATABASE AND GIVE OPTIONS TO SUSPEND - DELETE ETC
        $query = "SELECT tickets_status_id, tickets_status_name, tickets_status_order, tickets_status_color FROM nuke_hosting_tickets_status ORDER BY tickets_status_id ASC";
        $result = $db->sql_query($query);
        while ($row = $db->sql_fetchrow($result)) {
            ?>
				<form action="<?php 
            echo $_SERVER['PHP_SELF'];
            ?>
?op=Support&amp;caseid=status" Method="post">
				<tr bgcolor="<?php 
            echo UseColor();
            ?>
">
					<td><p><?php 
            echo $row[tickets_status_id];
            ?>
</p></td>
					<td><input name="status" value="<?php 
            echo $row[tickets_status_name];
            ?>
" size="40" /></td>
					<td><input name="order" value="<?php 
            echo $row[tickets_status_order];
            ?>
" size="20" /></td>
					<td bgcolor="#<?php 
            echo $row[tickets_status_color];
            ?>
"><input name="color" value="<?php 
            echo $row[tickets_status_color];
            ?>
" size="20" /></td>
					<td><p>
					<input type="submit" name="sub" value="Delete" onclick="return deletemember()" />
					<input type="hidden" name="depid" value="<?php 
            echo $row[tickets_status_id];
            ?>
">
					<input type="submit" name="sub" value="Edit" />
					</p></td>
				  </tr>
				</form>
<?php 
        }
        ?>
	</table>
<?php 
    }