merge master
commit
699f66b9ba
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Amp extends CI_Controller {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
$this->permission->is_admin();
|
||||
//$this->output->enable_profiler(TRUE);
|
||||
$this->load->model('Information_model');
|
||||
$this->load->model('InfoMetas_model');
|
||||
$this->load->library('Amplib');
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data = array();
|
||||
$this->load->view('bootstrap3/header', $data);
|
||||
$this->load->view('bootstrap3/footer');
|
||||
}
|
||||
|
||||
public function edit($ic_id) {
|
||||
$this->amplib->edit($ic_id);
|
||||
}
|
||||
|
||||
public function auto_create($ic_id) {
|
||||
echo $this->amplib->auto_create($ic_id);
|
||||
}
|
||||
|
||||
public function edit_save() {
|
||||
echo $this->amplib->edit_save();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Home extends CI_Controller
|
||||
{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->permission->is_admin();
|
||||
//$this->output->enable_profiler(TRUE);
|
||||
$this->load->model('Area_model');
|
||||
$this->load->model('Information_model');
|
||||
$this->load->model('InfoContents_model');
|
||||
$this->load->model('InfoStructures_model');
|
||||
}
|
||||
|
||||
//站点首页
|
||||
public function index()
|
||||
{
|
||||
$home_id=1;
|
||||
//查询结构根节点,当为空则建立
|
||||
$rootStructure = $this->Information_model->GetRoot('h', $home_id);
|
||||
if ($rootStructure == FALSE)
|
||||
{
|
||||
$this->InfoContents_model->Add('', 'HomePage', 'root', '', '', '', '', '', '', 0, 0, '', '', 0, 0, '', '', $home_id, 'h', 0,
|
||||
'','');
|
||||
$this->InfoStructures_model->Add(0, $this->InfoContents_model->insert_id);
|
||||
$is_id = $this->InfoStructures_model->insert_id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$is_id = $rootStructure->is_id;
|
||||
}
|
||||
redirect(site_url('information/edit/' . $is_id));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,309 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Info_amp extends CI_Controller
|
||||
{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
//$this->permission->is_admin();
|
||||
$this->load->model('InfoMetas_model');
|
||||
$this->load->model('InfoContents_model');
|
||||
$this->load->model('Information_model');
|
||||
$this->site_code = $this->config->item('site_code');
|
||||
//CORS TEST
|
||||
header('Access-Control-Allow-Origin:*');
|
||||
}
|
||||
|
||||
public function save_amp()
|
||||
{
|
||||
$icid = $this->input->get_post('icid');
|
||||
$json = $this->input->get_post('json');
|
||||
$html = $this->input->get_post('html');
|
||||
$css = $this->input->get_post('css');
|
||||
$schema = $this->input->get_post('schema');
|
||||
$script = $this->input->get_post('script');
|
||||
$status = $this->input->get_post('status');
|
||||
if ($icid && $json && $html) {
|
||||
try {
|
||||
//html
|
||||
$meta = $this->InfoMetas_model->get($icid, 'AMP_BODY');
|
||||
if ($meta === false) {
|
||||
$this->InfoMetas_model->add($icid, 'AMP_BODY', $html);
|
||||
} else {
|
||||
$this->InfoMetas_model->update($icid, 'AMP_BODY', $html);
|
||||
}
|
||||
//json
|
||||
$meta = $this->InfoMetas_model->get($icid, 'AMP_JSON');
|
||||
if ($meta === false) {
|
||||
$this->InfoMetas_model->add($icid, 'AMP_JSON', $json);
|
||||
} else {
|
||||
$this->InfoMetas_model->update($icid, 'AMP_JSON', $json);
|
||||
}
|
||||
//css
|
||||
$meta = $this->InfoMetas_model->get($icid, 'AMP_CSS');
|
||||
if ($meta === false) {
|
||||
$this->InfoMetas_model->add($icid, 'AMP_CSS', $css);
|
||||
} else {
|
||||
$this->InfoMetas_model->update($icid, 'AMP_CSS', $css);
|
||||
}
|
||||
//script
|
||||
$meta = $this->InfoMetas_model->get($icid, 'AMP_SCRIPT');
|
||||
if ($meta === false) {
|
||||
$this->InfoMetas_model->add($icid, 'AMP_SCRIPT', $script);
|
||||
} else {
|
||||
$this->InfoMetas_model->update($icid, 'AMP_SCRIPT', $script);
|
||||
}
|
||||
//schema
|
||||
$meta = $this->InfoMetas_model->get($icid, 'AMP_SCHEMA');
|
||||
if ($meta === false) {
|
||||
$this->InfoMetas_model->add($icid, 'AMP_SCHEMA', $schema);
|
||||
} else {
|
||||
$this->InfoMetas_model->update($icid, 'AMP_SCHEMA', $schema);
|
||||
}
|
||||
//status
|
||||
$meta = $this->InfoMetas_model->get($icid, 'AMP_STATUS');
|
||||
if ($meta === false) {
|
||||
$this->InfoMetas_model->add($icid, 'AMP_STATUS', $status);
|
||||
} else {
|
||||
$this->InfoMetas_model->update($icid, 'AMP_STATUS', $status);
|
||||
}
|
||||
echo json_encode(array(
|
||||
"succ" => true
|
||||
));
|
||||
} catch(Exception $e) {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "save_amp() -> ".$e->getMessage()
|
||||
));
|
||||
}
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "save_amp() -> 参数传递错误。"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
public function load_amp()
|
||||
{
|
||||
$icid = $this->input->get_post('icid');
|
||||
if (!$icid) {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "load_amp() -> 参数传递错误。"
|
||||
));
|
||||
return false;
|
||||
}
|
||||
//信息~返回信息
|
||||
$ic = $this->InfoContents_model->get_ic_contents2($icid);
|
||||
if (empty($ic)) {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "load_amp() -> 无信息"
|
||||
));
|
||||
return false;
|
||||
}
|
||||
switch (strtolower($ic->ic_sitecode)) {
|
||||
case 'vac':
|
||||
$site = 'https://www.viaje-a-china.com';
|
||||
break;
|
||||
case 'vc':
|
||||
$site = 'https://www.voyageschine.com';
|
||||
break;
|
||||
case 'jp':
|
||||
$site = 'https://www.arachina.com';
|
||||
break;
|
||||
case 'ru':
|
||||
$site = 'https://www.chinahighlights.ru';
|
||||
break;
|
||||
case 'it':
|
||||
$site = 'https://www.viaggio-in-cina.it';
|
||||
break;
|
||||
case 'cht':
|
||||
$site = 'https://www.chinahighlights.com';
|
||||
break;
|
||||
case 'gm':
|
||||
$site = 'https://www.chinarundreisen.com/';
|
||||
break;
|
||||
default:
|
||||
$site = '';
|
||||
break;
|
||||
}
|
||||
|
||||
$json = $this->InfoMetas_model->get($icid, 'AMP_JSON');
|
||||
$status = $this->InfoMetas_model->get($icid, 'AMP_STATUS');
|
||||
$schema = $this->InfoMetas_model->get($icid, 'AMP_SCHEMA');
|
||||
if ($json) {
|
||||
echo json_encode(array(
|
||||
"succ" => true,
|
||||
"icid" => $icid,
|
||||
"icurl" => $site.$ic->ic_url,
|
||||
"json" => $json,
|
||||
"schema" => $schema,
|
||||
"status" => $status
|
||||
));
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "load_amp() -> 无数据返回。"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
public function list_amp()
|
||||
{
|
||||
$site = $this->input->get_post('site');
|
||||
switch ($site) {
|
||||
case 'https://www.viaje-a-china.com':
|
||||
$site_code = 'vac';
|
||||
break;
|
||||
case 'https://www.voyageschine.com':
|
||||
$site_code = 'vc';
|
||||
break;
|
||||
case 'https://www.arachina.com':
|
||||
$site_code = 'jp';
|
||||
break;
|
||||
case 'https://www.chinahighlights.ru':
|
||||
$site_code = 'ru';
|
||||
break;
|
||||
case 'https://www.viaggio-in-cina.it':
|
||||
$site_code = 'it';
|
||||
break;
|
||||
case 'https://www.chinahighlights.com':
|
||||
$site_code = 'cht';
|
||||
break;
|
||||
case 'https://www.chinarundreisen.com/':
|
||||
$site_code = 'gm';
|
||||
break;
|
||||
default:
|
||||
$site_code = false;
|
||||
break;
|
||||
}
|
||||
if (!$site_code) {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "list_amp() -> 参数传递错误。"
|
||||
));
|
||||
return false;
|
||||
}
|
||||
$rs = $this->InfoMetas_model->list_amp($site_code);
|
||||
if (!empty($rs)) {
|
||||
echo json_encode($rs);
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "load_amp() -> 无数据返回。"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
public function list_info_children()
|
||||
{
|
||||
$site = $this->input->get_post('site');
|
||||
switch ($site) {
|
||||
case 'https://www.viaje-a-china.com':
|
||||
$site_code = 'vac';
|
||||
break;
|
||||
case 'https://www.voyageschine.com':
|
||||
$site_code = 'vc';
|
||||
break;
|
||||
case 'https://www.arachina.com':
|
||||
$site_code = 'jp';
|
||||
break;
|
||||
case 'https://www.chinahighlights.ru':
|
||||
$site_code = 'ru';
|
||||
break;
|
||||
case 'https://www.viaggio-in-cina.it':
|
||||
$site_code = 'it';
|
||||
break;
|
||||
case 'https://www.chinahighlights.com':
|
||||
$site_code = 'cht';
|
||||
break;
|
||||
case 'https://www.chinarundreisen.com/':
|
||||
$site_code = 'gm';
|
||||
break;
|
||||
default:
|
||||
$site_code = false;
|
||||
break;
|
||||
}
|
||||
$is_path = $this->input->get_post('is_path'); // '25693,278002094,'
|
||||
if (!$site_code || !$is_path) {
|
||||
echo json_encode(array(
|
||||
'succ' => false,
|
||||
'message' => 'list_info_children() -> 参数传递错误。'
|
||||
));
|
||||
return false;
|
||||
}
|
||||
$rs = $this->InfoMetas_model->list_info_by_path_with_meta($is_path, $site_code);
|
||||
if (!empty($rs)) {
|
||||
$newrs = array();
|
||||
foreach ($rs as $info) {
|
||||
$show_photo_meta = $this->InfoMetas_model->get($info->ic_id, 'meta_use_list_picture');
|
||||
if ($show_photo_meta == 'no') {
|
||||
$use_photo = '';
|
||||
} else {
|
||||
$use_photo = $this->config->item('site_image_url').$info->ic_photo;
|
||||
}
|
||||
if ($info->ic_type === 'c_attraction' || $info->ic_template === 'city_info_attractions_list' || $info->ic_template === 'r_tpl_empty_navi1p') {
|
||||
$list_info = true;
|
||||
} else {
|
||||
$list_info = false;
|
||||
}
|
||||
if ($list_info || !empty($info->ic_content) && !empty($info->ic_url) && stripos($info->ic_url, '/test/')===false) {
|
||||
array_push($newrs, array(
|
||||
'is_path' => $info->is_path,
|
||||
'ic_url' => $info->ic_url,
|
||||
'ic_id' => $info->ic_id,
|
||||
'title' => $info->ic_title,
|
||||
'photo' => $use_photo,
|
||||
'im_id' => $info->im_id
|
||||
));
|
||||
}
|
||||
}
|
||||
echo json_encode($newrs);
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "list_info_children() -> 无数据返回。"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
public function load_info()
|
||||
{
|
||||
$icid = $this->input->get_post('icid');
|
||||
if ($icid) {
|
||||
$ic = $this->InfoContents_model->get_ic_contents2($icid);
|
||||
if ($ic) {
|
||||
$show_photo_meta = $this->InfoMetas_model->get($icid, 'meta_use_list_picture');
|
||||
if ($show_photo_meta == 'no') {
|
||||
$use_photo = '';
|
||||
} else {
|
||||
$use_photo = $this->config->item('site_image_url').$ic->ic_photo;
|
||||
}
|
||||
echo json_encode(array(
|
||||
"succ" => true,
|
||||
"info" => $ic->ic_content ? $ic->ic_content : "<p>".$ic->ic_seo_description."</p>",
|
||||
"title" => $ic->ic_title,
|
||||
"photo" => $use_photo,
|
||||
"url" => $ic->ic_url,
|
||||
"site" => $this->config->item('site_url')
|
||||
));
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "load_info() -> 无数据返回。"
|
||||
));
|
||||
}
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
"succ" => false,
|
||||
"message" => "load_info() -> 参数传递错误。"
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Info_tags extends CI_Controller
|
||||
{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->permission->is_admin();
|
||||
//$this->output->enable_profiler(TRUE);
|
||||
$this->load->model('Information_model');
|
||||
$this->load->model('InfoTags_model');
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加标签
|
||||
*/
|
||||
public function add_tag()
|
||||
{
|
||||
$this->InfoTags_model->it_title = $this->input->get_post('title');
|
||||
$this->InfoTags_model->it_memo = $this->input->get_post('memo');
|
||||
$return = $this->InfoTags_model->add_tag();
|
||||
if ($return)
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => 1,
|
||||
'message' => $return
|
||||
)));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => -1,
|
||||
'message' => '添加标签失败'
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除标签
|
||||
*/
|
||||
public function remove_tag()
|
||||
{
|
||||
$this->InfoTags_model->it_title = $this->input->get_post('title');
|
||||
$return = $this->InfoTags_model->remove_tag();
|
||||
if ($return == 'success')
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => 1,
|
||||
'message' => '删除标签成功'
|
||||
)));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => -1,
|
||||
'message' => '删除标签失败'
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 展示标签
|
||||
*/
|
||||
public function list_tag($ic_id = '')
|
||||
{
|
||||
$ic_id ? $this->InfoTags_model->ic_id = $ic_id : $this->InfoTags_model->ic_id = $this->input->post('ic_id');
|
||||
$return = $this->InfoTags_model->list_tag();
|
||||
if ($return != 'fail')
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => 1,
|
||||
'data' => $return
|
||||
)));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => -1,
|
||||
'message' => '读出标签失败'
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加关联信息+标签
|
||||
*/
|
||||
public function add_tag_to_content()
|
||||
{
|
||||
$this->InfoTags_model->ic_id = $this->input->get_post('ic_id');
|
||||
$this->InfoTags_model->it_id = $this->input->get_post('it_id');
|
||||
$return = $this->InfoTags_model->add_tag_to_content();
|
||||
if ($return == 'success')
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => 1,
|
||||
'message' => '关联信息标签成功'
|
||||
)));
|
||||
}
|
||||
else if ($return == 'exist')
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => 2,
|
||||
'message' => '关联信息标签已存在'
|
||||
)));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => -1,
|
||||
'message' => '关联信息标签失败'
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 移除关联信息+标签
|
||||
*/
|
||||
public function remove_tag_to_content()
|
||||
{
|
||||
$this->InfoTags_model->ic_id = $this->input->get_post('ic_id');
|
||||
$this->InfoTags_model->it_id = $this->input->get_post('it_id');
|
||||
$return = $this->InfoTags_model->remove_tag_to_content();
|
||||
if ($return == 'success')
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => 1,
|
||||
'message' => '移除关联信息标签成功'
|
||||
)));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo(json_encode(array(
|
||||
'status' => -1,
|
||||
'message' => '移除关联信息标签失败'
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Zodiac extends CI_Controller {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
$this->load->model('LunarNewYear_model');
|
||||
}
|
||||
|
||||
public function index($z='rat')
|
||||
{
|
||||
$this->edit_zodiac(mb_strtolower($z));
|
||||
}
|
||||
|
||||
public function edit_zodiac($z='rat')
|
||||
{
|
||||
$data['nav_active'] = $data["current_zodiac"] = mb_strtolower($z);
|
||||
$data["zodiac_fortune"] = $this->LunarNewYear_model->get_zodiac($data["current_zodiac"]);
|
||||
// 预览编辑的问题
|
||||
if (substr($data["zodiac_fortune"]->TheYearFortune, 0, 4) !== '<div') {
|
||||
$data["zodiac_fortune"]->TheYearFortune = "<div>" . $data["zodiac_fortune"]->TheYearFortune . "</div>";
|
||||
}
|
||||
$this->load->view('bootstrap/header', $data);
|
||||
$this->load->view('bootstrap/zodiac/edit',$data);
|
||||
}
|
||||
|
||||
public function fortune_save()
|
||||
{
|
||||
$this->LunarNewYear_model->LNY_SX = trim($this->input->post("sx"));
|
||||
$this->LunarNewYear_model->LNY_LuckyNumber = trim($this->input->post("lucky_num"));
|
||||
$this->LunarNewYear_model->LNY_LuckyColor = trim($this->input->post("lucky_color"));
|
||||
$this->LunarNewYear_model->LNY_LuckyFlower = trim($this->input->post("lucky_flo"));
|
||||
$this->LunarNewYear_model->TheYearFortune = trim($this->input->post("theyearfortune"));
|
||||
$this->LunarNewYear_model->theyearfortune_save();
|
||||
$ret = array("name"=>"ok");
|
||||
$this->output->set_content_type('application/json')->set_output(json_encode($ret));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
class LunarNewYear_model extends CI_Model {
|
||||
|
||||
public $LNY_SX;
|
||||
public $LNY_LuckyNumber;
|
||||
public $LNY_LuckyColor;
|
||||
public $LNY_LuckyFlower;
|
||||
public $TheYearFortune;
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
$this->HT = $this->load->database('HT', TRUE);
|
||||
}
|
||||
|
||||
public function get_zodiac($zodiac = 'rat')
|
||||
{
|
||||
$sql = "SELECT TOP 1 LNY_SN ,
|
||||
LNY_SX ,
|
||||
LNY_LuckyNumber ,
|
||||
LNY_LuckyColor ,
|
||||
LNY_LuckyFlower ,
|
||||
TheYearFortune
|
||||
FROM LunarNewYear
|
||||
WHERE LOWER(LNY_SX)='$zodiac'";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
public function theyearfortune_save()
|
||||
{
|
||||
$sql = "UPDATE LunarNewYear
|
||||
SET LNY_LuckyNumber = ?,
|
||||
LNY_LuckyColor = ?,
|
||||
LNY_LuckyFlower = ?,
|
||||
TheYearFortune = ?
|
||||
WHERE LOWER(LNY_SX) = ?";
|
||||
$query = $this->HT->query($sql, array(
|
||||
$this->LNY_LuckyNumber,
|
||||
$this->LNY_LuckyColor,
|
||||
$this->LNY_LuckyFlower,
|
||||
$this->TheYearFortune,
|
||||
$this->LNY_SX
|
||||
));
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
class InfoTags_model extends CI_Model
|
||||
{
|
||||
//信息标签表
|
||||
var $it_title = '';
|
||||
var $it_memo = '';
|
||||
//信息标签关联表
|
||||
var $ic_id = '';
|
||||
var $it_id = '';
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->HT = $this->load->database('HT', TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加标签
|
||||
*/
|
||||
function add_tag()
|
||||
{
|
||||
if ($this->it_title)
|
||||
{
|
||||
//查看是否已存在标签
|
||||
$sql = "SELECT TOP 1 * from infoTags WHERE it_title = N?";
|
||||
$check = $this->HT->query($sql, array($this->it_title));
|
||||
|
||||
//添加标签
|
||||
if ($check->num_rows() === 0)
|
||||
{
|
||||
$sql = "INSERT INTO infoTags (it_title, it_memo) VALUES (N?, N?)";
|
||||
$query = $this->HT->query($sql, array($this->it_title, $this->it_memo));
|
||||
return $this->HT->insert_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
$row = $check->row();
|
||||
return $row->it_id;
|
||||
}
|
||||
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除标签
|
||||
*/
|
||||
function remove_tag()
|
||||
{
|
||||
if ($this->it_title)
|
||||
{
|
||||
$sql = "DELETE FROM infoTags WHERE it_title = N?";
|
||||
$query = $this->HT->query($sql, array($this->it_title));
|
||||
return 'success';
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 标签列表
|
||||
*/
|
||||
function list_tag()
|
||||
{
|
||||
if ($this->ic_id)
|
||||
{
|
||||
//展示信息的标签
|
||||
$sql = "SELECT * FROM infoContentToTag INNER JOIN infoTags ON icit_it_id = it_id WHERE icit_ic_id = ?";
|
||||
$query = $this->HT->query($sql, array($this->ic_id));
|
||||
return $query->result();
|
||||
}
|
||||
else
|
||||
{
|
||||
//全部展示
|
||||
$sql = "SELECT * FROM infoTags ORDER BY it_title ASC, it_date DESC";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加信息与标签的关联
|
||||
*/
|
||||
function add_tag_to_content()
|
||||
{
|
||||
if ($this->ic_id && $this->it_id)
|
||||
{
|
||||
//查看是否已存在关联
|
||||
$sql = "SELECT TOP 1 * from infoContentToTag WHERE icit_ic_id = ? AND icit_it_id = ?";
|
||||
$check = $this->HT->query($sql, array($this->ic_id, $this->it_id));
|
||||
|
||||
//添加关联
|
||||
if ($check->num_rows() === 0)
|
||||
{
|
||||
$sql = "INSERT INTO infoContentToTag (icit_ic_id, icit_it_id) VALUES (?, ?)";
|
||||
$query = $this->HT->query($sql, array($this->ic_id, $this->it_id));
|
||||
}
|
||||
else
|
||||
{
|
||||
return 'exist';
|
||||
}
|
||||
return 'success';
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 解除信息与标签的关联
|
||||
*/
|
||||
function remove_tag_to_content()
|
||||
{
|
||||
if ($this->ic_id && $this->it_id)
|
||||
{
|
||||
$sql = "DELETE FROM infoContentToTag WHERE icit_ic_id = ? and icit_it_id = ?";
|
||||
$query = $this->HT->query($sql, array($this->ic_id, $this->it_id));
|
||||
return 'success';
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
class InfoTags_model extends CI_Model
|
||||
{
|
||||
//信息标签表
|
||||
var $it_title = '';
|
||||
var $it_memo = '';
|
||||
//信息标签关联表
|
||||
var $ic_id = '';
|
||||
var $it_id = '';
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->HT = $this->load->database('HT', TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加标签
|
||||
*/
|
||||
function add_tag()
|
||||
{
|
||||
if ($this->it_title)
|
||||
{
|
||||
//查看是否已存在标签
|
||||
$sql = "SELECT TOP 1 * from infoTags WHERE it_title = N?";
|
||||
$check = $this->HT->query($sql, array($this->it_title));
|
||||
|
||||
//添加标签
|
||||
if ($check->num_rows() === 0)
|
||||
{
|
||||
$sql = "INSERT INTO infoTags (it_title, it_memo) VALUES (N?, N?)";
|
||||
$query = $this->HT->query($sql, array($this->it_title, $this->it_memo));
|
||||
return $this->HT->insert_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
$row = $check->row();
|
||||
return $row->it_id;
|
||||
}
|
||||
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除标签
|
||||
*/
|
||||
function remove_tag()
|
||||
{
|
||||
if ($this->it_title)
|
||||
{
|
||||
$sql = "DELETE FROM infoTags WHERE it_title = N?";
|
||||
$query = $this->HT->query($sql, array($this->it_title));
|
||||
return 'success';
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 标签列表
|
||||
*/
|
||||
function list_tag()
|
||||
{
|
||||
if ($this->ic_id)
|
||||
{
|
||||
//展示信息的标签
|
||||
$sql = "SELECT * FROM infoContentToTag INNER JOIN infoTags ON icit_it_id = it_id WHERE icit_ic_id = ?";
|
||||
$query = $this->HT->query($sql, array($this->ic_id));
|
||||
return $query->result();
|
||||
}
|
||||
else
|
||||
{
|
||||
//全部展示
|
||||
$sql = "SELECT * FROM infoTags ORDER BY it_title ASC, it_date DESC";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加信息与标签的关联
|
||||
*/
|
||||
function add_tag_to_content()
|
||||
{
|
||||
if ($this->ic_id && $this->it_id)
|
||||
{
|
||||
//查看是否已存在关联
|
||||
$sql = "SELECT TOP 1 * from infoContentToTag WHERE icit_ic_id = ? AND icit_it_id = ?";
|
||||
$check = $this->HT->query($sql, array($this->ic_id, $this->it_id));
|
||||
|
||||
//添加关联
|
||||
if ($check->num_rows() === 0)
|
||||
{
|
||||
$sql = "INSERT INTO infoContentToTag (icit_ic_id, icit_it_id) VALUES (?, ?)";
|
||||
$query = $this->HT->query($sql, array($this->ic_id, $this->it_id));
|
||||
}
|
||||
else
|
||||
{
|
||||
return 'exist';
|
||||
}
|
||||
return 'success';
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 解除信息与标签的关联
|
||||
*/
|
||||
function remove_tag_to_content()
|
||||
{
|
||||
if ($this->ic_id && $this->it_id)
|
||||
{
|
||||
$sql = "DELETE FROM infoContentToTag WHERE icit_ic_id = ? and icit_it_id = ?";
|
||||
$query = $this->HT->query($sql, array($this->ic_id, $this->it_id));
|
||||
return 'success';
|
||||
}
|
||||
return 'fail';
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,537 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>China Reisen und China Rundreisen individuell | Chinarundreisen.com</title>
|
||||
|
||||
<link href="https://data.chinarundreisen.com/information-view/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="https://data.chinarundreisen.com/information-view/information/css/order.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="https://data.chinarundreisen.com/information-view/information/css/bootstrap-datetimepicker.min.css?v=201506022" rel="stylesheet" type="text/css"/>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
|
||||
<![endif]-->
|
||||
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/bootstrap.js" type="text/javascript"></script>
|
||||
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery-ui.min.1-11-3.js" type="text/javascript"></script>
|
||||
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
|
||||
<style type="text/css">.popover{background-color:#f2f600;}</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="headerWrapper">
|
||||
<div id="header">
|
||||
<div id="mainnav" class="nav navbar" role="navigation">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
|
||||
<a href="/">
|
||||
<img width="135" src="http://data.chinarundreisen.com/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="logo">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-14 col-sm-13 col-lg-offset-3 col-sm-offset-4">
|
||||
<div class="navbar-header">
|
||||
<div class="col-xs-24 btn-lg"></div>
|
||||
<div class="col-xs-24 text-white"><?php if(!isset($dear)) $dear='Liebe/r'; echo $dear; ?> <?php echo $username; ?></div>
|
||||
<div class="col-xs-24 text-white">Buchungsnummer: <?php echo $userinfo[0]->COLI_ID; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-7 col-sm-7 hidden-xs pull-right nopadding">
|
||||
<div class="tollfree pull-right" style="padding-top:10px;">
|
||||
<div class="currentNo col-sm-24 nopadding"><span class="glyphicon glyphicon-earphone" style="font-size:12px;"></span> +86 773 <?php echo $userinfo[0]->OPI_Telephone; ?>(GMT+8)</div>
|
||||
<div class="col-sm-24">
|
||||
<div class="currentNo col-sm-24 nopadding"> 800-822-4462(gebührenfrei aus Deutschland)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-24 btn-lg"></div>
|
||||
|
||||
<div class="col-xs-24 welcome-text">
|
||||
<h4 class="text-center text-red">Vielen Dank für die Buchung bei Chinarundreisen! </h4>
|
||||
<h4 class="text-center text-red">Bitte füllen Sie das folgende Formular aus und schicken es zurück.</h4>
|
||||
</div>
|
||||
<form id="form-confirm-info" method="post" action="/secureinfoconfirm/confirm/save_confirm_info">
|
||||
<div class="col-xs-24 personinfo-box">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="row panel-new-head">
|
||||
<h4 class="text-red">Kunden informationen</h4>
|
||||
<p>Bitte prüfen Sie, ob Ihr Name richtig geschrieben ist (vollständiger Name wie im Reisepass) . Da wir die Folgekosten durch ein wegen falschem Namen stornierten Hotel oder Flugticket nicht tragen, ist die richtige Schreibweise Ihres Namens und Ihrer alle Daten unbedingt wichtig.</p>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 nopadding">
|
||||
<div class="form-group col-sm-7 nopadding-R" style="margin-bottom:0px;">
|
||||
<label style="width:100%;text-align:left !important;font-weight:normal">
|
||||
<span class="col-xs-6 nopadding"></span>
|
||||
<div class="col-xs-18 nopadding-L" style="height:15px;">
|
||||
<div class="col-xs-11 nopadding text-right">Nachname</div>
|
||||
<div class="col-xs-1 nopadding text-right" style="font-size:18px;width:10px;">/</div>
|
||||
<div class="col-xs-11 nopadding" style="padding-left: 2px !important;">Name</div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group col-sm-4 nopadding-R" style="margin-bottom:0px;">
|
||||
<label class="" style="font-weight:normal">Geburtstag</label>
|
||||
</div>
|
||||
<div class="form-group col-sm-4 nopadding-R" style="margin-bottom:0px;">
|
||||
<label class="" style="font-weight:normal">Passnr.</label>
|
||||
</div>
|
||||
<div class="form-group col-sm-5 nopadding-R" style="margin-bottom:0px;">
|
||||
<label class="" style="font-weight:normal">Verfallsdatum des Reisepasses</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4" style="margin-bottom:0px;">
|
||||
<label class="" style="font-weight:normal">Nationalität</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 nopadding personinfo-input-box">
|
||||
|
||||
<div class="form-group col-sm-7 nopadding-R">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 nopadding-R">
|
||||
|
||||
<select class="form-control input-sm nopadding-L" name="gender[]">
|
||||
<option value="100001">Herr</option>
|
||||
<option value="100003">Frau</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-18 nopadding-L">
|
||||
<div class="input-group">
|
||||
<div class="form-control input-sm nopadding">
|
||||
<div class="col-xs-11 nopadding">
|
||||
<input name="sur_name[]" class="common_input form-control input-sm nopadding-R" placeholder="" style="border:none;height:28px;" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie hier Ihren Nachname!">
|
||||
</div>
|
||||
<div class="col-xs-1 nopadding text-center" style="font-size:18px;width:10px;">/</div>
|
||||
<div class="col-xs-11 col-sm-11 nopadding">
|
||||
<input name="given_name[]" class="common_input form-control input-sm nopadding-R" placeholder="" style="border:none;height:28px;" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie hier Ihren Name!">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4 nopadding-R">
|
||||
<div class="input-groups date " data-date="1970-05-20">
|
||||
<input class="form-control input-sm common_input bd_datepicker" type="text" name="birthday[]" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihr Geburtsdatum ein!" autocomplete="off" style="color:#333333 !important;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4 nopadding-R">
|
||||
<input type="text" class="form-control input-sm common_input" name="passport[]" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Ausweisnummer ein!" autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-5 nopadding-R">
|
||||
<div class="input-groups date">
|
||||
<input class="form-control input-sm common_input datepicker" type="text" name="passport_expiration_date[]" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie das Datum ein, wann Ihr Personalausweis abläuft!" autocomplete="off" style="color:#333333 !important;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group col-sm-4">
|
||||
<div class="input-group">
|
||||
<select class="form-control input-sm common_input" name="nationality[]">
|
||||
<optgroup label="--Top Nationalitäten--">
|
||||
<option value="6" selected="selected">
|
||||
Deutschland
|
||||
</option>
|
||||
<option value="470">
|
||||
Österreich
|
||||
</option>
|
||||
<option value="25">
|
||||
die Schweiz
|
||||
</option>
|
||||
<option value="572">
|
||||
Luxemburg
|
||||
</option>
|
||||
|
||||
</optgroup>
|
||||
<optgroup label="--Mehr Nationalitäten--">
|
||||
|
||||
<option value="5">
|
||||
Kanada
|
||||
</option>
|
||||
<option value="8">
|
||||
Frankreich
|
||||
</option>
|
||||
|
||||
</optgroup>
|
||||
</select>
|
||||
<span class="input-group-addon" style="background:#fff;border:none;padding:2px 3px;">
|
||||
<span class="glyphicon glyphicon-minuss text-danger"></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 add-personinfo-box">
|
||||
<span class="text-red" id="btn-add-personinfo-box">
|
||||
<span class="glyphicon glyphicon-plus"></span> Mitreisende hinzufügen
|
||||
</span>
|
||||
<div class="col-xs-24 btn-lg"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-xs-24 Home-Address">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
Kontakttelefon:
|
||||
</span>
|
||||
<div class="form-control input-sm nopadding" style="border:none;-webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.">
|
||||
<div class="col-xs-11 nopadding">
|
||||
<input type="text" name="landline" value="" class="common_input form-control input-sm" placeholder="land line" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Nummer an Land ein!">
|
||||
</div>
|
||||
<div class="col-xs-13 nopadding">
|
||||
<input type="text" name="mobile" value="" class="common_input form-control input-sm" placeholder="Handy" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Handynummer ein!">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($userinfo[0]->COLI_CustomerType!=44003){ ?>
|
||||
<div class="form-group col-xs-24 Home-Address">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon" style="min-width:120px;">
|
||||
Anschrift:
|
||||
</span>
|
||||
<div class="form-control input-sm hidden-xs nopadding">
|
||||
<div class="col-xs-7 nopadding">
|
||||
<input name="address_street" class="input_home_address form-control input-sm" placeholder="Straße" style="border:none;height:28px;" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Heimatadresse ein!">
|
||||
</div>
|
||||
<div class="col-xs-1 nopadding" style="font-size:18px;width:10px;">,</div>
|
||||
<div class="col-xs-7 nopadding">
|
||||
<input name="address_city" class="input_home_address form-control input-sm nopadding" placeholder="Stadt" style="border:none;height:28px;" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Heimatadresse ein!">
|
||||
</div>
|
||||
<div class="col-xs-1 nopadding hidden" style="font-size:18px;width:10px;">,</div>
|
||||
<div class="col-xs-5 nopadding hidden">
|
||||
<input name="address_state" class="input_home_address form-control input-sm nopadding" placeholder="State" style="border:none;height:28px;" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Heimatadresse ein!">
|
||||
</div>
|
||||
<div class="col-xs-1 nopadding" style="font-size:18px;width:10px;">,</div>
|
||||
<div class="col-xs-8 nopadding">
|
||||
<input name="address_country" class="input_home_address form-control input-sm nopadding" placeholder="Land" style="border:none;height:28px;" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Heimatadresse ein!">
|
||||
</div>
|
||||
</div>
|
||||
<input class="form-control input-sm visible-xs-block" name="home_address">
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 flightinfo-box">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="row panel-new-head">
|
||||
<h4 class="text-red">Fluginformationen</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 flight-info-box">
|
||||
<div class="form-group col-sm-6 nopadding">
|
||||
<label>Ankunftsflug in China </label>
|
||||
<input type="text" class="form-control input-sm" name="MEI_ArrivalFlightNo" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Flugnummer ein!">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6 nopadding-R">
|
||||
<label>Ankunftszeit</label>
|
||||
<div class="input-groups date" >
|
||||
<input class="form-control input-sm f_datepicker" type="text" name="MEI_ArrivalTime" value="" autocomplete="off" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Ankunftszeit ein!" style="color:#333333 !important;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6 nopadding-R">
|
||||
<label>Abflugnummer von China</label>
|
||||
<input type="text" class="form-control input-sm" name="MEI_DepartureFlightNo" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Flugnummer ein!">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6 nopadding-R">
|
||||
<label>Abflugzeit</label>
|
||||
<div class="input-groups date ">
|
||||
<input class="form-control input-sm f_datepicker" type="text" name="MEI_DepartureTime" value="" autocomplete="off" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihre Abfahrtszeit ein!" style="color:#333333 !important;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="row panel-new-head">
|
||||
<h4 class="text-red">
|
||||
Besondere Anforderungen
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 special_request_box">
|
||||
<div class="form-group">
|
||||
<div class="col-xs-24 nopadding">
|
||||
<textarea class="form-control input-sm" rows="5" name="special_request" placeholder="Großes Bett für
|
||||
Vegetarisches Essen für
|
||||
Andere Abfahrts-/Ankunftszeit für
|
||||
"></textarea>
|
||||
</div>
|
||||
<div class="col-xs-24 btn-lg"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($userinfo[0]->COLI_CustomerType!=44003){ ?>
|
||||
<div class="col-xs-24">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="row panel-new-head">
|
||||
<h4 class="text-red">
|
||||
Kontaktinformationen für Notfälle
|
||||
<span class="text-muted" style="font-size:15px;">(im Falle eines Notfalls während Ihrer Chinareise)</span>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 new-form-horizontal emergencyx_box">
|
||||
|
||||
<div class="form-group col-sm-13">
|
||||
<label class="col-sm-9 control-label nopadding-L">Kontaktsperson</label>
|
||||
<div class="col-sm-13 nopadding">
|
||||
<input type="text" class="form-control input-sm" name="emergency_person_name" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie Ihren Kontakt für Notfälle ein!">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-11">
|
||||
<label class="col-sm-7 control-label nopadding-L">Email Adresse</label>
|
||||
<div class="col-sm-17 nopadding">
|
||||
<input type="text" class="form-control input-sm" name="emergency_email" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie ihre E-Mail-Adresse ein!">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-13">
|
||||
<label class="col-sm-9 control-label nopadding-L">Beziehung mit ihm/ihr</label>
|
||||
<div class="col-sm-13 nopadding">
|
||||
<input type="text" class="form-control input-sm" name="emergency_relationship" placeholder="z.B.: Er ist der Vater von Sue." value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie hier Ihren Beziehungsstatus ein!">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-11">
|
||||
<label class="col-sm-7 control-label nopadding-L">Telefon Nr. </label>
|
||||
<div class="col-sm-17 nopadding">
|
||||
<input type="text" class="form-control input-sm" name="emergency_telephone" placeholder="Länderkürzel + Postleitzahl (land line gibt es nicht in Deutschland)" value="" data-trigger="manual" data-container="body" data-toggle="popover" data-placement="top" data-content="Bitte tragen Sie hier Ihre Telefonnummer ein!">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-24 btn-lg"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="col-xs-24">
|
||||
<input type="hidden" name="toname" value="<?php echo $userinfo[0]->OPI_FirstName; ?>">
|
||||
<input type="hidden" name="tomail" value="<?php echo $userinfo[0]->OPI_Email; ?>">
|
||||
<input type="hidden" name="COLI_ID" value="<?php echo $userinfo[0]->COLI_ID; ?>">
|
||||
<input type="hidden" name="COLI_SN" value="<?php echo $userinfo[0]->COLI_SN; ?>">
|
||||
<input type="hidden" name="visitor_link" value="<?php echo $visitor_link; ?>">
|
||||
<div class="col-sm-15 col-xs-24 nopadding">
|
||||
<button type="submit" id="btn-add-userinfo" class="btn btn-danger btn-lg col-sm-9 col-xs-24 pull-right" style="min-width:300px;font-size:24px;">Überprüfen & Absenden</button>
|
||||
</div>
|
||||
<div class="partner-text col-sm-9 col-xs-24 text-left">Danke! Mit besten Grüßen, <?php echo $userinfo[0]->OPI_FirstName; ?></div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Fehler!</h4>
|
||||
</div>
|
||||
<div class="modal-body" style="height:150px;">
|
||||
<p class="text-danger lead" style="padding-top:10px;">Fehler: Bitte kontaktieren Sie Ihren Reisebegleiter.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
$(".common_input,textarea").each(function(){
|
||||
if ($(this).val()=='' && $(this).attr('placeholder')!='') {
|
||||
var valstr=$(this).val($(this).attr('placeholder'));
|
||||
$(this).css("color","#999999");
|
||||
}
|
||||
});
|
||||
$(".common_input,textarea").click(function(){
|
||||
if ($(this).val()==$(this).attr('placeholder') || $(this).val()=='') {
|
||||
$(this).val('');
|
||||
$(this).css("color","#333333");
|
||||
}
|
||||
$(this).popover('hide');
|
||||
});
|
||||
$(".common_input,textarea").blur(function(){
|
||||
if ($(this).val()=='' && $(this).attr('placeholder')!='') {
|
||||
$(this).val($(this).attr('placeholder'));
|
||||
$(this).css("color","#999999");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//提交信息
|
||||
$("#form-confirm-info").submit(function(event){
|
||||
event.preventDefault();
|
||||
var $btn = $("#btn-add-userinfo").button('loading');
|
||||
|
||||
var flag=true;
|
||||
$(".common_input").each(function(){
|
||||
if ($(this).val()==$(this).attr('placeholder') || $(this).val()=='') {
|
||||
$(this).popover('show');
|
||||
flag = false;
|
||||
$btn.button('reset');
|
||||
return false;
|
||||
};
|
||||
});
|
||||
if (!flag) {
|
||||
$btn.button('reset');
|
||||
return false;
|
||||
};
|
||||
|
||||
$(".input_home_address").each(function()
|
||||
{
|
||||
if ($(this).val()==$(this).attr('placeholder')) {
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
if ($("textarea").val()==$("textarea").attr('placeholder')) {
|
||||
$("textarea").val('');
|
||||
};
|
||||
|
||||
var url=$(this).attr('action');
|
||||
var data=$(this).serialize();
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: url,
|
||||
dataType: "json",
|
||||
data: data,
|
||||
success: function(json_data) {
|
||||
if (json_data.status == 'ok') {
|
||||
location.href='/secureinfoconfirm/confirm/index/0/0/0/gm';
|
||||
} else {
|
||||
$btn.button('reset');
|
||||
$('#myModal').modal('show');
|
||||
}
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
$btn.button('reset');
|
||||
alert(errorThrown);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//移除一个客户信息
|
||||
$('body').on('click','.glyphicon-minus',function(){
|
||||
if(confirm("entfernen den Kunde?"))
|
||||
{
|
||||
$(this).parents('.personinfo-input-box').remove();
|
||||
}
|
||||
});
|
||||
|
||||
//添加一个客户信息
|
||||
$("#btn-add-personinfo-box").click(function()
|
||||
{
|
||||
var html=$(".personinfo-input-box:first").clone();
|
||||
$('.add-personinfo-box').before(html);
|
||||
|
||||
var num=$(".personinfo-input-box").length;
|
||||
var $currentbox=$(".personinfo-input-box:last");
|
||||
|
||||
$currentbox.find('.glyphicon-minuss').addClass('glyphicon-minus').removeClass('glyphicon-minuss');
|
||||
$currentbox.find('label').remove();
|
||||
$currentbox.find('input').val('');
|
||||
$currentbox.find('.datepicker').removeClass('hasDatepicker').attr('id','');
|
||||
$currentbox.find('.bd_datepicker').removeClass('hasDatepicker').attr('id','');
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
controlType: 'select',
|
||||
oneLine: true,
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
yearRange: '2010:2025',
|
||||
timeFormat: 'mm/dd/yy'
|
||||
});
|
||||
$('.bd_datepicker').datepicker({
|
||||
controlType: 'select',
|
||||
oneLine: true,
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
defaultDate:'-45y',
|
||||
yearRange: '1920:2015',
|
||||
timeFormat: 'mm/dd/yy'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//日期初始化
|
||||
|
||||
$('.f_datepicker').datetimepicker({
|
||||
controlType: 'select',
|
||||
oneLine: true,
|
||||
changeMonth: false,
|
||||
changeYear: false,
|
||||
timeFormat: 'H:mm'
|
||||
});
|
||||
|
||||
$('.bd_datepicker').datepicker({
|
||||
controlType: 'select',
|
||||
oneLine: true,
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
defaultDate:'-45y',
|
||||
yearRange: '1920:2015',
|
||||
timeFormat: 'mm/dd/yy'
|
||||
});
|
||||
$('.datepicker').datepicker({
|
||||
controlType: 'select',
|
||||
oneLine: true,
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
yearRange: '2010:2025',
|
||||
timeFormat: 'mm/dd/yy'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).on('click','.common_input',function(){
|
||||
$(this).popover('hide');
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<title>China Reisen und China Rundreisen individuell | Chinarundreisen.com</title>
|
||||
|
||||
<link href="https://data.chinarundreisen.com/information-view/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="https://data.chinarundreisen.com/information-view/information/css/order.css" rel="stylesheet" type="text/css"/>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
|
||||
<![endif]-->
|
||||
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/bootstrap.js" type="text/javascript"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="modal-open">
|
||||
|
||||
<div id="headerWrapper">
|
||||
<div id="header">
|
||||
<div id="mainnav" class="nav navbar" role="navigation">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
|
||||
<a href="/">
|
||||
<img width="135" src="http://data.chinarundreisen.com/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="logo">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-16 col-sm-13 col-lg-offset-3 col-sm-offset-4">
|
||||
<div class="navbar-header">
|
||||
<div class="col-xs-24 btn-lg"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-5 col-sm-7 hidden-xs pull-right nopadding">
|
||||
<div class="tollfree pull-right">
|
||||
<div class="col-xs-24 btn-sm"></div>
|
||||
<div class="currentNo col-sm-24 nopadding"><span class="glyphicon glyphicon-earphone" style="font-size:12px;"></span> 800-2682918 (USA/CA)</div>
|
||||
<div class="col-sm-24">
|
||||
<div class="currentNo col-sm-24 nopadding"> 1800-764678 (AU)</div>
|
||||
<div class="currentNo col-sm-24 nopadding"> 0800-0327753 (UK)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bs-example bs-example-modal" data-example-id="static-modal">
|
||||
<div class="modal" style="display:block;">
|
||||
<div class="modal-dialog" style="margin-top:200px;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-title text-success" id="modal-title">Erfolg!<a class="anchorjs-link" href="#modal-title"><span class="anchorjs-icon"></span></a></h3>
|
||||
</div>
|
||||
<div class="modal-body" style="height:150px;">
|
||||
<h4 style="padding-top:10px;">Für jeglichen Grund kontaktieren Sie bitte Ihren Reiseführer.</h4>
|
||||
<p>----<a href="http://www.chinarundreisen.com" class="">www.chinarundreisen.com</a></p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div>
|
||||
<div class="modal-backdrop fade in" style="bottom:0;"></div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,175 @@
|
||||
<?php
|
||||
|
||||
class BIZ_intel_train_model extends CI_Model {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
$this->HT = $this->load->database('HT', TRUE);
|
||||
}
|
||||
|
||||
//查询火车列表信息
|
||||
public function get_train_info($trainFromCode,$trainToCode){
|
||||
if($trainFromCode == 'CHBJ'){
|
||||
$add = "OR tl.trainFromCode = 'CHPW'";
|
||||
}else{
|
||||
$add = "";
|
||||
}
|
||||
$sql = "
|
||||
SELECT
|
||||
tl.trainNo,
|
||||
tl.trainFrom,
|
||||
tl.trainFromCode,
|
||||
(select s_country from TrainStation_intel where s_code = tl.trainFromCode) as from_country,
|
||||
tl.trainTo,
|
||||
tl.trainToCode,
|
||||
(select s_country from TrainStation_intel where s_code = tl.trainToCode) as to_country,
|
||||
tl.trainType,
|
||||
tl.train_no,
|
||||
tl.trainUse,
|
||||
tl.RunTime,
|
||||
tl.departTime,
|
||||
(select top 1 trainArrive from trainlistDetail where train_no = tl.train_no order by trainOrder desc) as arriveTime,
|
||||
tl.UseDay,
|
||||
tl.DateRule,
|
||||
tl.TrainMessage,
|
||||
tp.seatPriceInfo2
|
||||
FROM
|
||||
trainlist tl
|
||||
left join
|
||||
trainPrice tp
|
||||
on
|
||||
tl.train_no = tp.train_no
|
||||
WHERE
|
||||
tl.isGlobal = 1
|
||||
AND
|
||||
(tl.trainFromCode = '{$trainFromCode}' {$add})
|
||||
AND
|
||||
tl.trainToCode = '{$trainToCode}'
|
||||
AND
|
||||
tl.DateRule != ''
|
||||
AND
|
||||
tp.seatPriceInfo2 IS NOT NULL
|
||||
order by departTime asc
|
||||
";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
public function get_code_by_name($name){
|
||||
$sql = "select s_code from TrainStation_intel where s_ename = '{$name}'";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
public function get_seatname($seat_code){
|
||||
$sql = "select Seat_EName1,Seat_Pic from TrainSeat_Intel where Seat_code = '{$seat_code}'";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
//获取一列指定火车数据
|
||||
public function get_one_train($train_no){
|
||||
$sql = "
|
||||
SELECT
|
||||
*,
|
||||
(select s_country from TrainStation_intel where trainFromCode = s_code ) as From_country,
|
||||
(select s_country from TrainStation_intel where trainToCode = s_code ) as To_country
|
||||
FROM
|
||||
trainlist tl
|
||||
LEFT JOIN
|
||||
trainPrice tp
|
||||
ON
|
||||
tl.train_no = tp.train_no
|
||||
WHERE
|
||||
tl.train_no = '{$train_no}'
|
||||
AND
|
||||
isGlobal = 1
|
||||
";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
public function get_allinteltrain(){
|
||||
$sql = "
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
TrainStation_intel
|
||||
LEFT JOIN
|
||||
trainlist
|
||||
ON
|
||||
s_code = trainFromCode
|
||||
WHERE
|
||||
trainFrom != 'NULL'
|
||||
";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
public function get_seat_info($seat_code){
|
||||
$sql = "SELECT Seat_CName,Seat_EName1 FROM TrainSeat_Intel WHERE Seat_Code = '{$seat_code}'";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
public function get_train_station($train_no){
|
||||
$sql = "SELECT * FROM trainlistDetail WHERE train_no = '{$train_no}' order by trainOrder asc";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
public function get_allstations(){
|
||||
$sql = "SELECT * FROM TrainStation_intel";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
public function ch_allstations(){
|
||||
$sql = "SELECT * FROM TrainStation_intel where station_id != 10";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
public function get_train_rules($station_id){
|
||||
$sql = "SELECT
|
||||
S_ename,s_country,tsi_Message
|
||||
FROM
|
||||
TrainSearch_intel
|
||||
LEFT JOIN
|
||||
TrainStation_intel
|
||||
ON
|
||||
tsi_ToStation = station_id
|
||||
where
|
||||
tsi_FromStation = '{$station_id}'";
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
public function ch_train_rules($station_id,$flag){
|
||||
if($flag){
|
||||
$and = "and s_country != 'Vietnam'";
|
||||
}else{
|
||||
$and = "";
|
||||
}
|
||||
if($station_id == 11){
|
||||
$station = "or tsi_FromStation = 10";
|
||||
}else{
|
||||
$station = "";
|
||||
}
|
||||
$sql = "SELECT
|
||||
S_ename,s_country,tsi_Message
|
||||
FROM
|
||||
TrainSearch_intel
|
||||
LEFT JOIN
|
||||
TrainStation_intel
|
||||
ON
|
||||
tsi_ToStation = station_id
|
||||
where
|
||||
tsi_FromStation = '{$station_id}'
|
||||
";
|
||||
$sql .= $and;
|
||||
$sql .= $station;
|
||||
$query = $this->HT->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<div id="editor-toolbar">
|
||||
<div id="code-btn" class="w-e-menu code-menu" data-i=1 style="z-index:10001;">
|
||||
<i class="w-e-icon-terminal"><i></i></i>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,17 @@
|
||||
<ul class="nav nav-list" style="border-right:1px solid #ddd;min-height:1024px;">
|
||||
<li class="nav-header">运势信息管理</li>
|
||||
<li class="<?php echo $nav_active=='rat'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/rat'); ?>">鼠</a></li>
|
||||
<li class="<?php echo $nav_active=='ox'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/ox'); ?>">牛<?php if(isset($task_count['edit']) && $task_count['edit']>0){ ?> <span class="label"><?php echo $task_count['edit'];?></span><?php } ?></a></li>
|
||||
<li class="<?php echo $nav_active=='tiger'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/tiger'); ?>">虎<?php if(isset($task_count['review'])){ ?> <span class="label"><?php echo $task_count['review'];?></span><?php } ?></a></li>
|
||||
<li class="<?php echo $nav_active=='rabbit'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/rabbit'); ?>">兔<?php if(isset($task_count['wait'])){ ?> <span class="label"><?php echo $task_count['wait'];?></span><?php } ?></a></li>
|
||||
<li class="<?php echo $nav_active=='dragon'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/dragon'); ?>">龙<?php if(isset($task_count['reviewed'])){ ?> <span class="label"><?php echo $task_count['reviewed'];?></span><?php } ?></a></li>
|
||||
<li class="<?php echo $nav_active=='snake'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/snake'); ?>">蛇</a></li>
|
||||
<li class="<?php echo $nav_active=='horse'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/horse'); ?>">马</a></li>
|
||||
<li class="<?php echo $nav_active=='goat'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/goat'); ?>">羊</a></li>
|
||||
<li class="<?php echo $nav_active=='monkey'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/monkey'); ?>">猴</a></li>
|
||||
<li class="<?php echo $nav_active=='rooster'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/rooster'); ?>">鸡</a></li>
|
||||
<li class="<?php echo $nav_active=='dog'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/dog'); ?>">狗</a></li>
|
||||
<li class="<?php echo $nav_active=='pig'?'active':false; ?>"><a href="<?php echo site_url('zodiac/index/pig'); ?>">猪</a></li>
|
||||
<li class="divider"></li>
|
||||
|
||||
</ul>
|
@ -0,0 +1,130 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>AMP转化表-v1.0</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link href="http://europe.chtcdn.com/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
|
||||
<script type="text/javascript" src="http://europe.chtcdn.com/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="http://europe.chtcdn.com/bootstrap/js/bootstrap.min.js"></script>
|
||||
<style type="text/css">
|
||||
.show-grid {padding: 15px; background: #efefef; border-radius: 5px;}
|
||||
.mr10 {margin-right: 10px;}
|
||||
.nav {margin-bottom: 5px;}
|
||||
.pic {display: none;}
|
||||
.msg {color: #07c;}
|
||||
.mt12 {margin-top: 12px;}
|
||||
.msg_wait {color: #999;}
|
||||
.none {display: none;}
|
||||
.form-search {display: inline-block;margin:0 0 0 5px !important;}
|
||||
.input-medium.search-query {width: 250px;}
|
||||
#search,#insert,#update {margin-top: 2px;float: right;}
|
||||
@media (min-width: 1200px) {
|
||||
.container.wd {
|
||||
padding: 0 15px;
|
||||
width: 1170px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
//下拉选站点
|
||||
$('a.sss').on('click', function() {
|
||||
var site = $(this).html();
|
||||
location.href = '/info.php/login/change_site/'+site+'/?url=/tools/amp_check';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container wd">
|
||||
<div class="row show-grid">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active dropdown mr10">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
站点:<?php echo($this->config->item('site_code'));?>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a class="sss">cht</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">jp</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">gm</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">vc</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">vac</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">ru</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">it</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="sss">ct</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<span class="label label-info">信息:<?php echo(count($info));?>个 (只显示前800个)</span>
|
||||
<form class="form-search" id="path_search" action="#" method="post">
|
||||
<span class="checkbox">
|
||||
<label>
|
||||
<input type="radio" name="amp" value="yes" <?php if($amp == 'yes') echo('checked'); ?>> 显示已转换AMP的信息
|
||||
</label>
|
||||
</span>
|
||||
|
||||
<span class="checkbox">
|
||||
<label>
|
||||
<input type="radio" name="amp" value="no" <?php if($amp == 'no') echo('checked'); ?>> 显示未转换AMP的信息
|
||||
</label>
|
||||
</span>
|
||||
|
||||
<button type="submit" class="btn">筛选</button>
|
||||
</form>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>文件名</th>
|
||||
<th width="6%">AMP转化</th>
|
||||
<th width="6%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="data_group">
|
||||
<?php foreach($info as $key=>$it) {
|
||||
if ($key == 800) break;
|
||||
?>
|
||||
<tr class="data">
|
||||
<td><?php echo($key+1);?></td>
|
||||
<td title="<?php echo($it->ic_url);?>"><?php echo($it->ic_url);?></td>
|
||||
<td>
|
||||
<?php
|
||||
if ($amp == 'yes')
|
||||
echo('<span style="color:seagreen">是</span>');
|
||||
else
|
||||
echo('<span style="color:#a12023">否</span>');
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:document.getElementById('keywords').value='<?php echo(urlencode($it->ic_url));?>';document.forms.goSearch.submit();" target="_blank">编辑</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<form action="/info.php/welcome/search" method="post" id="goSearch" target="_blank">
|
||||
<input type="hidden" name="keywords" id="keywords" value="">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/beautify/php_rules",["require","exports","module","ace/token_iterator"],function(e,t,n){"use strict";var r=e("ace/token_iterator").TokenIterator;t.newLines=[{type:"support.php_tag",value:"<?php"},{type:"support.php_tag",value:"<?"},{type:"support.php_tag",value:"?>"},{type:"paren.lparen",value:"{",indent:!0},{type:"paren.rparen",breakBefore:!0,value:"}",indent:!1},{type:"paren.rparen",breakBefore:!0,value:"})",indent:!1,dontBreak:!0},{type:"comment"},{type:"text",value:";"},{type:"text",value:":",context:"php"},{type:"keyword",value:"case",indent:!0,dontBreak:!0},{type:"keyword",value:"default",indent:!0,dontBreak:!0},{type:"keyword",value:"break",indent:!1,dontBreak:!0},{type:"punctuation.doctype.end",value:">"},{type:"meta.tag.punctuation.end",value:">"},{type:"meta.tag.punctuation.begin",value:"<",blockTag:!0,indent:!0,dontBreak:!0},{type:"meta.tag.punctuation.begin",value:"</",indent:!1,breakBefore:!0,dontBreak:!0},{type:"punctuation.operator",value:";"}],t.spaces=[{type:"xml-pe",prepend:!0},{type:"entity.other.attribute-name",prepend:!0},{type:"storage.type",value:"var",append:!0},{type:"storage.type",value:"function",append:!0},{type:"keyword.operator",value:"="},{type:"keyword",value:"as",prepend:!0,append:!0},{type:"keyword",value:"function",append:!0},{type:"support.function",next:/[^\(]/,append:!0},{type:"keyword",value:"or",append:!0,prepend:!0},{type:"keyword",value:"and",append:!0,prepend:!0},{type:"keyword",value:"case",append:!0},{type:"keyword.operator",value:"||",append:!0,prepend:!0},{type:"keyword.operator",value:"&&",append:!0,prepend:!0}],t.singleTags=["!doctype","area","base","br","hr","input","img","link","meta"],t.transform=function(e,n,r){var i=e.getCurrentToken(),s=t.newLines,o=t.spaces,u=t.singleTags,a="",f=0,l=!1,c,h,p={},d,v={},m=!1,g="";while(i!==null){console.log(i);if(!i){i=e.stepForward();continue}i.type=="support.php_tag"&&i.value!="?>"?r="php":i.type=="support.php_tag"&&i.value=="?>"?r="html":i.type=="meta.tag.name.style"&&r!="css"?r="css":i.type=="meta.tag.name.style"&&r=="css"?r="html":i.type=="meta.tag.name.script"&&r!="js"?r="js":i.type=="meta.tag.name.script"&&r=="js"&&(r="html"),v=e.stepForward(),v&&v.type.indexOf("meta.tag.name")==0&&(d=v.value),p.type=="support.php_tag"&&p.value=="<?="&&(l=!0),i.type=="meta.tag.name"&&(i.value=i.value.toLowerCase()),i.type=="text"&&(i.value=i.value.trim());if(!i.value){i=v;continue}g=i.value;for(var y in o)i.type==o[y].type&&(!o[y].value||i.value==o[y].value)&&v&&(!o[y].next||o[y].next.test(v.value))&&(o[y].prepend&&(g=" "+i.value),o[y].append&&(g+=" "));i.type.indexOf("meta.tag.name")==0&&(c=i.value),m=!1;for(y in s)if(i.type==s[y].type&&(!s[y].value||i.value==s[y].value)&&(!s[y].blockTag||u.indexOf(d)===-1)&&(!s[y].context||s[y].context===r)){s[y].indent===!1&&f--;if(s[y].breakBefore&&(!s[y].prev||s[y].prev.test(p.value))){a+="\n",m=!0;for(y=0;y<f;y++)a+=" "}break}if(l===!1)for(y in s)if(p.type==s[y].type&&(!s[y].value||p.value==s[y].value)&&(!s[y].blockTag||u.indexOf(c)===-1)&&(!s[y].context||s[y].context===r)){s[y].indent===!0&&f++;if(!s[y].dontBreak&&!m){a+="\n";for(y=0;y<f;y++)a+=" "}break}a+=g,p.type=="support.php_tag"&&p.value=="?>"&&(l=!1),h=c,p=i,i=v;if(i===null)break}return a}}),ace.define("ace/ext/beautify",["require","exports","module","ace/token_iterator","ace/ext/beautify/php_rules"],function(e,t,n){"use strict";var r=e("ace/token_iterator").TokenIterator,i=e("./beautify/php_rules").transform;t.beautify=function(e){var t=new r(e,0,0),n=t.getCurrentToken(),s=e.$modeId.split("/").pop(),o=i(t,s);e.doc.setValue(o)},t.commands=[{name:"beautify",exec:function(e){t.beautify(e.session)},bindKey:"Ctrl-Shift-B"}]});
|
||||
(function() {
|
||||
ace.require(["ace/ext/beautify"], function() {});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t,n){"use strict";var r=function(e){this.$editor=e;var t=this,n=[],r=!1;this.onAfterExec=function(){r=!1,t.processRows(n),n=[]},this.onExec=function(){r=!0},this.onChange=function(e){r&&(n.indexOf(e.start.row)==-1&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;var t=[];for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t.indexOf(i)>-1)continue;var s=this.$findCellWidthsForBlock(i),o=this.$setBlockCellWidthsToMax(s.cellWidths),u=s.firstRow;for(var a=0,f=o.length;a<f;a++){var l=o[a];t.push(u),this.$adjustRow(u,l),u++}}this.$inChange=!1},this.$findCellWidthsForBlock=function(e){var t=[],n,r=e;while(r>=0){n=this.$cellWidthsForRow(r);if(n.length==0)break;t.unshift(n),r--}var i=r+1;r=e;var s=this.$editor.session.getLength();while(r<s-1){r++,n=this.$cellWidthsForRow(r);if(n.length==0)break;t.push(n)}return{cellWidths:t,firstRow:i}},this.$cellWidthsForRow=function(e){var t=this.$selectionColumnsForRow(e),n=[-1].concat(this.$tabsForRow(e)),r=n.map(function(e){return 0}).slice(1),i=this.$editor.session.getLine(e);for(var s=0,o=n.length-1;s<o;s++){var u=n[s]+1,a=n[s+1],f=this.$rightmostSelectionInCell(t,a),l=i.substring(u,a);r[s]=Math.max(l.replace(/\s+$/g,"").length,f-u)}return r},this.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},this.$setBlockCellWidthsToMax=function(e){var t=!0,n,r,i,s=this.$izip_longest(e);for(var o=0,u=s.length;o<u;o++){var a=s[o];if(!a.push){console.error(a);continue}a.push(NaN);for(var f=0,l=a.length;f<l;f++){var c=a[f];t&&(n=f,i=0,t=!1);if(isNaN(c)){r=f;for(var h=n;h<r;h++)e[h][o]=i;t=!0}i=Math.max(i,c)}}return e},this.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){var r=[];for(var i=0,s=e.length;i<s;i++)e[i]<=t?r.push(i):r.push(0);n=Math.max.apply(Math,r)}return n},this.$tabsForRow=function(e){var t=[],n=this.$editor.session.getLine(e),r=/\t/g,i;while((i=r.exec(n))!=null)t.push(i.index);return t},this.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(n.length==0)return;var r=0,i=-1,s=this.$izip(t,n);for(var o=0,u=s.length;o<u;o++){var a=s[o][0],f=s[o][1];i+=1+a,f+=r;var l=i-f;if(l==0)continue;var c=this.$editor.session.getLine(e).substr(0,f),h=c.replace(/\s*$/g,""),p=c.length-h.length;l>0&&(this.$editor.session.getDocument().insertInLine({row:e,column:f+1},Array(l+1).join(" ")+" "),this.$editor.session.getDocument().removeInLine(e,f,f+1),r+=l),l<0&&p>=-l&&(this.$editor.session.getDocument().removeInLine(e,f+l,f),r+=l)}},this.$izip_longest=function(e){if(!e[0])return[];var t=e[0].length,n=e.length;for(var r=1;r<n;r++){var i=e[r].length;i>t&&(t=i)}var s=[];for(var o=0;o<t;o++){var u=[];for(var r=0;r<n;r++)e[r][o]===""?u.push(NaN):u.push(e[r][o]);s.push(u)}return s},this.$izip=function(e,t){var n=e.length>=t.length?t.length:e.length,r=[];for(var i=0;i<n;i++){var s=[e[i],t[i]];r.push(s)}return r}}).call(r.prototype),t.ElasticTabstopsLite=r;var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new r(this)),this.commands.on("afterExec",this.elasticTabstops.onAfterExec),this.commands.on("exec",this.elasticTabstops.onExec),this.on("change",this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener("afterExec",this.elasticTabstops.onAfterExec),this.commands.removeListener("exec",this.elasticTabstops.onExec),this.removeListener("change",this.elasticTabstops.onChange))}}})});
|
||||
(function() {
|
||||
ace.require(["ace/ext/elastic_tabstops_lite"], function() {});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
||||
;
|
||||
(function() {
|
||||
ace.require(["ace/ext/error_marker"], function() {});
|
||||
})();
|
||||
|
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../../lib/dom"),i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);-webkit-transition: all 0.5s;transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 1000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}";r.importCssString(i),n.exports.overlayPage=function(t,n,i,s,o,u){function l(e){e.keyCode===27&&a.click()}i=i?"top: "+i+";":"",o=o?"bottom: "+o+";":"",s=s?"right: "+s+";":"",u=u?"left: "+u+";":"";var a=document.createElement("div"),f=document.createElement("div");a.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",a.addEventListener("click",function(){document.removeEventListener("keydown",l),a.parentNode.removeChild(a),t.focus(),a=null}),document.addEventListener("keydown",l),f.style.cssText=i+s+o+u,f.addEventListener("click",function(e){e.stopPropagation()});var c=r.createElement("div");c.style.position="relative";var h=r.createElement("div");h.className="ace_closeButton",h.addEventListener("click",function(){a.click()}),c.appendChild(h),f.appendChild(c),f.appendChild(n),a.appendChild(f),document.body.appendChild(a),t.blur()}}),ace.define("ace/ext/menu_tools/get_editor_keyboard_shortcuts",["require","exports","module","ace/lib/keys"],function(e,t,n){"use strict";var r=e("../../lib/keys");n.exports.getEditorKeybordShortcuts=function(e){var t=r.KEY_MODS,n=[],i={};return e.keyBinding.$handlers.forEach(function(e){var t=e.commandKeyBinding;for(var r in t){var s=r.replace(/(^|-)\w/g,function(e){return e.toUpperCase()}),o=t[r];Array.isArray(o)||(o=[o]),o.forEach(function(e){typeof e!="string"&&(e=e.name),i[e]?i[e].key+="|"+s:(i[e]={key:s,command:e},n.push(i[e]))})}}),n}}),ace.define("ace/ext/keybinding_menu",["require","exports","module","ace/editor","ace/ext/menu_tools/overlay_page","ace/ext/menu_tools/get_editor_keyboard_shortcuts"],function(e,t,n){"use strict";function i(t){if(!document.getElementById("kbshortcutmenu")){var n=e("./menu_tools/overlay_page").overlayPage,r=e("./menu_tools/get_editor_keyboard_shortcuts").getEditorKeybordShortcuts,i=r(t),s=document.createElement("div"),o=i.reduce(function(e,t){return e+'<div class="ace_optionsMenuEntry"><span class="ace_optionsMenuCommand">'+t.command+"</span> : "+'<span class="ace_optionsMenuKey">'+t.key+"</span></div>"},"");s.id="kbshortcutmenu",s.innerHTML="<h1>Keyboard Shortcuts</h1>"+o+"</div>",n(t,s,"0","0","0",null)}}var r=e("ace/editor").Editor;n.exports.init=function(e){r.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e,t){e.showKeyboardShortcuts()}}])}});
|
||||
(function() {
|
||||
ace.require(["ace/ext/keybinding_menu"], function() {});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,t,n){function i(e){var n=e.editor,r=e.getAccelKey();if(r){var n=e.editor,i=e.getDocumentPosition(),s=n.session,o=s.getTokenAt(i.row,i.column);t.previousLinkingHover&&t.previousLinkingHover!=o&&n._emit("linkHoverOut"),n._emit("linkHover",{position:i,token:o}),t.previousLinkingHover=o}else t.previousLinkingHover&&(n._emit("linkHoverOut"),t.previousLinkingHover=!1)}function s(e){var t=e.getAccelKey(),n=e.getButton();if(n==0&&t){var r=e.editor,i=e.getDocumentPosition(),s=r.session,o=s.getTokenAt(i.row,i.column);r._emit("linkClick",{position:i,token:o})}}var r=e("ace/editor").Editor;e("../config").defineOptions(r.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",s),this.on("mousemove",i)):(this.off("click",s),this.off("mousemove",i))},value:!1}}),t.previousLinkingHover=!1});
|
||||
(function() {
|
||||
ace.require(["ace/ext/linking"], function() {});
|
||||
})();
|
||||
|
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n;var r;/\^/.test(n)?r=n.replace(/\|(\^)?/g,function(e,t){return"$|"+(t?"^":"^.*\\.")})+"$":r="^.*\\.("+n+")$",this.extRe=new RegExp(r,"gi")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],AsciiDoc:["asciidoc|adoc"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],Bro:["bro"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Dummy:["dummy"],DummySyntax:["dummy"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|vue|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MEL:["mel"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nix:["nix"],NSIS:["nsi|nsh"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Pig:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Python:["py"],R:["r"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala"],Scheme:["scm|sm|rkt|oak|scheme"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Smarty:["smarty|tpl"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSX:["tsx"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Django:["html"]},u={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g," "),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}});
|
||||
(function() {
|
||||
ace.require(["ace/ext/modelist"], function() {});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
||||
ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,n){"use strict";function l(e,t){this.$u=e,this.$doc=t}var r=e("./lib/oop"),i=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,u=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,f=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){r.implement(this,s),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new u(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e==this.$splits)return;if(e>this.$splits){while(this.$splits<this.$editors.length&&this.$splits<e)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;while(this.$splits<e)this.$createEditor(),this.$splits++}else while(this.$splits>e)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();if(n){var r=new l(n,t);t.setUndoManager(r)}return t.$informUndoManager=i.delayedCall(function(){t.$deltas=[]}),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;t==null?n=this.$cEditor:n=this.$editors[t];var r=this.$editors.some(function(t){return t.session===e});return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){if(this.$orientation==e)return;this.$orientation=e,this.resize()},this.resize=function(){var e=this.$container.clientWidth,t=this.$container.clientHeight,n;if(this.$orientation==this.BESIDE){var r=e/this.$splits;for(var i=0;i<this.$splits;i++)n=this.$editors[i],n.container.style.width=r+"px",n.container.style.top="0px",n.container.style.left=i*r+"px",n.container.style.height=t+"px",n.resize()}else{var s=t/this.$splits;for(var i=0;i<this.$splits;i++)n=this.$editors[i],n.container.style.width=e+"px",n.container.style.top=i*s+"px",n.container.style.left="0px",n.container.style.height=s+"px",n.resize()}}}).call(f.prototype),function(){this.execute=function(e){this.$u.execute(e)},this.undo=function(){var e=this.$u.undo(!0);e&&this.$doc.selection.setSelectionRange(e)},this.redo=function(){var e=this.$u.redo(!0);e&&this.$doc.selection.setSelectionRange(e)},this.reset=function(){this.$u.reset()},this.hasUndo=function(){return this.$u.hasUndo()},this.hasRedo=function(){return this.$u.hasRedo()}}.call(l.prototype),t.Split=f}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(e,t,n){"use strict";n.exports=e("../split")});
|
||||
(function() {
|
||||
ace.require(["ace/ext/split"], function() {});
|
||||
})();
|
||||
|
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/static_highlight",["require","exports","module","ace/edit_session","ace/layer/text","ace/config","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../edit_session").EditSession,i=e("../layer/text").Text,s=".ace_static_highlight {font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;font-size: 12px;white-space: pre-wrap}.ace_static_highlight .ace_gutter {width: 2em;text-align: right;padding: 0 3px 0 0;margin-right: 3px;}.ace_static_highlight.ace_show_gutter .ace_line {padding-left: 2.6em;}.ace_static_highlight .ace_line { position: relative; }.ace_static_highlight .ace_gutter-cell {-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none;top: 0;bottom: 0;left: 0;position: absolute;}.ace_static_highlight .ace_gutter-cell:before {content: counter(ace_line, decimal);counter-increment: ace_line;}.ace_static_highlight {counter-reset: ace_line;}",o=e("../config"),u=e("../lib/dom"),a=function(){this.config={}};a.prototype=i.prototype;var f=function(e,t,n){var r=e.className.match(/lang-(\w+)/),i=t.mode||r&&"ace/mode/"+r[1];if(!i)return!1;var s=t.theme||"ace/theme/textmate",o="",a=[];if(e.firstElementChild){var l=0;for(var c=0;c<e.childNodes.length;c++){var h=e.childNodes[c];h.nodeType==3?(l+=h.data.length,o+=h.data):a.push(l,h)}}else o=u.getInnerText(e),t.trim&&(o=o.trim());f.render(o,i,s,t.firstLineNumber,!t.showGutter,function(t){u.importCssString(t.css,"ace_highlight"),e.innerHTML=t.html;var r=e.firstChild.firstChild;for(var i=0;i<a.length;i+=2){var s=t.session.doc.indexToPosition(a[i]),o=a[i+1],f=r.children[s.row];f&&f.appendChild(o)}n&&n()})};f.render=function(e,t,n,i,s,u){function h(){var r=f.renderSync(e,t,n,i,s);return u?u(r):r}var a=1,l=r.prototype.$modes;typeof n=="string"&&(a++,o.loadModule(["theme",n],function(e){n=e,--a||h()}));var c;return t&&typeof t=="object"&&!t.getTokenizer&&(c=t,t=c.path),typeof t=="string"&&(a++,o.loadModule(["mode",t],function(e){if(!l[t]||c)l[t]=new e.Mode(c);t=l[t],--a||h()})),--a||h()},f.renderSync=function(e,t,n,i,o){i=parseInt(i||1,10);var u=new r("");u.setUseWorker(!1),u.setMode(t);var f=new a;f.setSession(u),u.setValue(e);var l=[],c=u.getLength();for(var h=0;h<c;h++)l.push("<div class='ace_line'>"),o||l.push("<span class='ace_gutter ace_gutter-cell' unselectable='on'></span>"),f.$renderLine(l,h,!0,!1),l.push("\n</div>");var p="<div class='"+n.cssClass+"'>"+"<div class='ace_static_highlight"+(o?"":" ace_show_gutter")+"' style='counter-reset:ace_line "+(i-1)+"'>"+l.join("")+"</div>"+"</div>";return f.destroy(),{css:s+n.cssText,html:p,session:u}},n.exports=f,n.exports.highlight=f});
|
||||
(function() {
|
||||
ace.require(["ace/ext/static_highlight"], function() {});
|
||||
})();
|
||||
|
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(e,t,n){"use strict";var r=e("ace/lib/dom"),i=e("ace/lib/lang"),s=function(e,t){this.element=r.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",t.appendChild(this.element);var n=i.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on("changeStatus",n),e.on("changeSelection",n),e.on("keyboardActivity",n)};(function(){this.updateStatus=function(e){function n(e,n){e&&t.push(e,n||"|")}var t=[];n(e.keyBinding.getStatusText(e)),e.commands.recording&&n("REC");var r=e.selection,i=r.lead;if(!r.isEmpty()){var s=e.getSelectionRange();n("("+(s.end.row-s.start.row)+":"+(s.end.column-s.start.column)+")"," ")}n(i.row+":"+i.column," "),r.rangeCount&&n("["+r.rangeCount+"]"," "),t.pop(),this.element.textContent=t.join("")}}).call(s.prototype),t.StatusBar=s});
|
||||
(function() {
|
||||
ace.require(["ace/ext/statusbar"], function() {});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/themelist",["require","exports","module","ace/lib/fixoldbrowsers"],function(e,t,n){"use strict";e("ace/lib/fixoldbrowsers");var r=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:e[2]=="dark",name:n};return t.themesByName[n]=r,r})});
|
||||
(function() {
|
||||
ace.require(["ace/ext/themelist"], function() {});
|
||||
})();
|
||||
|
@ -0,0 +1,5 @@
|
||||
ace.define("ace/ext/whitespace",["require","exports","module","ace/lib/lang"],function(e,t,n){"use strict";var r=e("../lib/lang");t.$detectIndentation=function(e,t){function c(e){var t=0;for(var r=e;r<n.length;r+=e)t+=n[r]||0;return t}var n=[],r=[],i=0,s=0,o=Math.min(e.length,1e3);for(var u=0;u<o;u++){var a=e[u];if(!/^\s*[^*+\-\s]/.test(a))continue;if(a[0]==" ")i++,s=-Number.MAX_VALUE;else{var f=a.match(/^ */)[0].length;if(f&&a[f]!=" "){var l=f-s;l>0&&!(s%l)&&!(f%l)&&(r[l]=(r[l]||0)+1),n[f]=(n[f]||0)+1}s=f}while(u<o&&a[a.length-1]=="\\")a=e[u++]}var h=r.reduce(function(e,t){return e+t},0),p={score:0,length:0},d=0;for(var u=1;u<12;u++){var v=c(u);u==1?(d=v,v=n[1]?.9:.8,n.length||(v=0)):v/=d,r[u]&&(v+=r[u]/h),v>p.score&&(p={score:v,length:u})}if(p.score&&p.score>1.4)var m=p.length;if(i>d+1){if(m==1||d<i/4||p.score<1.8)m=undefined;return{ch:" ",length:m}}if(d>i+1)return{ch:" ",length:m}},t.detectIndentation=function(e){var n=e.getLines(0,1e3),r=t.$detectIndentation(n)||{};return r.ch&&e.setUseSoftTabs(r.ch==" "),r.length&&e.setTabSize(r.length),r},t.trimTrailingSpace=function(e,t){var n=e.getDocument(),r=n.getAllLines(),i=t&&t.trimEmpty?-1:0,s=[],o=-1;t&&t.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach(function(e,t,n){var r=n[t+1];if(r&&r.cursor.row==e.cursor.row)return;s.push(e.cursor)}):s.push(e.selection.getCursor()),o=0);var u=s[o]&&s[o].row;for(var a=0,f=r.length;a<f;a++){var l=r[a],c=l.search(/\s+$/);a==u&&(c<s[o].column&&c>i&&(c=s[o].column),o++,u=s[o]?s[o].row:-1),c>i&&n.removeInLine(a,c,l.length)}},t.convertIndentation=function(e,t,n){var i=e.getTabString()[0],s=e.getTabSize();n||(n=s),t||(t=i);var o=t==" "?t:r.stringRepeat(t,n),u=e.doc,a=u.getAllLines(),f={},l={};for(var c=0,h=a.length;c<h;c++){var p=a[c],d=p.match(/^\s*/)[0];if(d){var v=e.$getStringScreenWidth(d)[0],m=Math.floor(v/s),g=v%s,y=f[m]||(f[m]=r.stringRepeat(o,m));y+=l[g]||(l[g]=r.stringRepeat(" ",g)),y!=d&&(u.removeInLine(c,0,d.length),u.insertInLine({row:c,column:0},y))}}e.setTabSize(n),e.setUseSoftTabs(t==" ")},t.$parseStringArg=function(e){var t={};/t/.test(e)?t.ch=" ":/s/.test(e)&&(t.ch=" ");var n=e.match(/\d+/);return n&&(t.length=parseInt(n[0],10)),t},t.$parseArg=function(e){return e?typeof e=="string"?t.$parseStringArg(e):typeof e.text=="string"?t.$parseStringArg(e.text):e:{}},t.commands=[{name:"detectIndentation",exec:function(e){t.detectIndentation(e.session)}},{name:"trimTrailingSpace",exec:function(e){t.trimTrailingSpace(e.session)}},{name:"convertIndentation",exec:function(e,n){var r=t.$parseArg(n);t.convertIndentation(e.session,r.ch,r.length)}},{name:"setIndentation",exec:function(e,n){var r=t.$parseArg(n);r.length&&e.session.setTabSize(r.length),r.ch&&e.session.setUseSoftTabs(r.ch==" ")}}]});
|
||||
(function() {
|
||||
ace.require(["ace/ext/whitespace"], function() {});
|
||||
})();
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
ace.define("ace/snippets/javascript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n ${4:// body...}\n };\n# Function\nsnippet fun\n function ${1?:function_name}(${2:argument}) {\n ${3:// body...}\n }\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n function${M1?: ${1:functionName}}($2) {\n ${0:$TM_SELECTED_TEXT}\n }${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n (function(${1}) {\n ${0:${TM_SELECTED_TEXT:/* code */}}\n }(${1}));\n# if\nsnippet if\n if (${1:true}) {\n ${0}\n }\n# if ... else\nsnippet ife\n if (${1:true}) {\n ${2}\n } else {\n ${0}\n }\n# tertiary conditional\nsnippet ter\n ${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n switch (${1:expression}) {\n case \'${3:case}\':\n ${4:// code}\n break;\n ${5}\n default:\n ${2:// code}\n }\n# case\nsnippet case\n case \'${1:case}\':\n ${2:// code}\n break;\n ${3}\n\n# while (...) {...}\nsnippet wh\n while (${1:/* condition */}) {\n ${0:/* code */}\n }\n# try\nsnippet try\n try {\n ${0:/* code */}\n } catch (e) {}\n# do...while\nsnippet do\n do {\n ${2:/* code */}\n } while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n ${1:method_name}: function(${2:attribute}) {\n ${0}\n }${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n setTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n getElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n getElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n console.log(${1});\n# return\nsnippet ret\n return ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n for (var ${1:prop} in ${2:Things}) {\n ${0:$2[$1]}\n }\n# hasOwnProperty\nsnippet has\n hasOwnProperty(${1})\n# docstring\nsnippet /**\n /**\n * ${1:description}\n *\n */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n @param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n @return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n JSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n JSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n var ${1:function_name} = function(${2:argument}) {\n ${3:// initial code ...}\n\n $1 = function($2) {\n ${4:// main code}\n };\n }\n# singleton\nsnippet sing\n function ${1:Singleton} (${2:argument}) {\n // the cached instance\n var instance;\n\n // rewrite the constructor\n $1 = function $1($2) {\n return instance;\n };\n \n // carry over the prototype properties\n $1.prototype = this;\n\n // the instance\n instance = new $1();\n\n // reset the constructor pointer\n instance.constructor = $1;\n\n ${3:// code ...}\n\n return instance;\n }\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n var ${1:class} = function(${20}) {\n $40$0\n };\n \n (function() {\n ${60:this.prop = ""}\n }).call(${1:class}.prototype);\n \n exports.${1:class} = ${1:class};\n# \nsnippet for-\n for (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n ${0:${2:Things}[${1:i}];}\n }\n# for (...) {...}\nsnippet for\n for (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n ${3:$2[$1]}$0\n }\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n for (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n ${3:$2[$1]}$0\n }\n\n\n#modules\nsnippet def\n define(function(require, exports, module) {\n "use strict";\n var ${1/.*\\///} = require("${1}");\n \n $TM_SELECTED_TEXT\n });\nsnippet req\nguard ^\\s*\n var ${1/.*\\///} = require("${1}");\n $0\nsnippet requ\nguard ^\\s*\n var ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n $0\n',t.scope="javascript"})
|
@ -0,0 +1 @@
|
||||
ace.define("ace/snippets/json",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="json"})
|
@ -0,0 +1 @@
|
||||
ace.define("ace/theme/dreamweaver",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-dreamweaver",t.cssText='.ace-dreamweaver .ace_gutter {background: #e8e8e8;color: #333;}.ace-dreamweaver .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-dreamweaver {background-color: #FFFFFF;color: black;}.ace-dreamweaver .ace_fold {background-color: #757AD8;}.ace-dreamweaver .ace_cursor {color: black;}.ace-dreamweaver .ace_invisible {color: rgb(191, 191, 191);}.ace-dreamweaver .ace_storage,.ace-dreamweaver .ace_keyword {color: blue;}.ace-dreamweaver .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-dreamweaver .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-dreamweaver .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-dreamweaver .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-dreamweaver .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-dreamweaver .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-dreamweaver .ace_support.ace_type,.ace-dreamweaver .ace_support.ace_class {color: #009;}.ace-dreamweaver .ace_support.ace_php_tag {color: #f00;}.ace-dreamweaver .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-dreamweaver .ace_string {color: #00F;}.ace-dreamweaver .ace_comment {color: rgb(76, 136, 107);}.ace-dreamweaver .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-dreamweaver .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-dreamweaver .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-dreamweaver .ace_variable {color: #06F}.ace-dreamweaver .ace_xml-pe {color: rgb(104, 104, 91);}.ace-dreamweaver .ace_entity.ace_name.ace_function {color: #00F;}.ace-dreamweaver .ace_heading {color: rgb(12, 7, 255);}.ace-dreamweaver .ace_list {color:rgb(185, 6, 144);}.ace-dreamweaver .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-dreamweaver .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-dreamweaver .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-dreamweaver .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-dreamweaver .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-dreamweaver .ace_gutter-active-line {background-color : #DCDCDC;}.ace-dreamweaver .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-dreamweaver .ace_meta.ace_tag {color:#009;}.ace-dreamweaver .ace_meta.ace_tag.ace_anchor {color:#060;}.ace-dreamweaver .ace_meta.ace_tag.ace_form {color:#F90;}.ace-dreamweaver .ace_meta.ace_tag.ace_image {color:#909;}.ace-dreamweaver .ace_meta.ace_tag.ace_script {color:#900;}.ace-dreamweaver .ace_meta.ace_tag.ace_style {color:#909;}.ace-dreamweaver .ace_meta.ace_tag.ace_table {color:#099;}.ace-dreamweaver .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-dreamweaver .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})
|
@ -0,0 +1 @@
|
||||
ace.define("ace/theme/tomorrow",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-tomorrow",t.cssText=".ace-tomorrow .ace_gutter {background: #f6f6f6;color: #4D4D4C}.ace-tomorrow .ace_print-margin {width: 1px;background: #f6f6f6}.ace-tomorrow {background-color: #FFFFFF;color: #4D4D4C}.ace-tomorrow .ace_cursor {color: #AEAFAD}.ace-tomorrow .ace_marker-layer .ace_selection {background: #D6D6D6}.ace-tomorrow.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-tomorrow .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-tomorrow .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-tomorrow .ace_marker-layer .ace_active-line {background: #EFEFEF}.ace-tomorrow .ace_gutter-active-line {background-color : #dcdcdc}.ace-tomorrow .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6}.ace-tomorrow .ace_invisible {color: #D1D1D1}.ace-tomorrow .ace_keyword,.ace-tomorrow .ace_meta,.ace-tomorrow .ace_storage,.ace-tomorrow .ace_storage.ace_type,.ace-tomorrow .ace_support.ace_type {color: #8959A8}.ace-tomorrow .ace_keyword.ace_operator {color: #3E999F}.ace-tomorrow .ace_constant.ace_character,.ace-tomorrow .ace_constant.ace_language,.ace-tomorrow .ace_constant.ace_numeric,.ace-tomorrow .ace_keyword.ace_other.ace_unit,.ace-tomorrow .ace_support.ace_constant,.ace-tomorrow .ace_variable.ace_parameter {color: #F5871F}.ace-tomorrow .ace_constant.ace_other {color: #666969}.ace-tomorrow .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-tomorrow .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-tomorrow .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-tomorrow .ace_entity.ace_name.ace_function,.ace-tomorrow .ace_support.ace_function,.ace-tomorrow .ace_variable {color: #4271AE}.ace-tomorrow .ace_support.ace_class,.ace-tomorrow .ace_support.ace_type {color: #C99E00}.ace-tomorrow .ace_heading,.ace-tomorrow .ace_markup.ace_heading,.ace-tomorrow .ace_string {color: #718C00}.ace-tomorrow .ace_entity.ace_name.ace_tag,.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow .ace_meta.ace_tag,.ace-tomorrow .ace_string.ace_regexp,.ace-tomorrow .ace_variable {color: #C82829}.ace-tomorrow .ace_comment {color: #8E908C}.ace-tomorrow .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})
|
@ -0,0 +1 @@
|
||||
ace.define("ace/theme/tomorrow_night_eighties",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-tomorrow-night-eighties",t.cssText=".ace-tomorrow-night-eighties .ace_gutter {background: #272727;color: #CCC}.ace-tomorrow-night-eighties .ace_print-margin {width: 1px;background: #272727}.ace-tomorrow-night-eighties {background-color: #2D2D2D;color: #CCCCCC}.ace-tomorrow-night-eighties .ace_constant.ace_other,.ace-tomorrow-night-eighties .ace_cursor {color: #CCCCCC}.ace-tomorrow-night-eighties .ace_marker-layer .ace_selection {background: #515151}.ace-tomorrow-night-eighties.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2D2D2D;}.ace-tomorrow-night-eighties .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-tomorrow-night-eighties .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #6A6A6A}.ace-tomorrow-night-bright .ace_stack {background: rgb(66, 90, 44)}.ace-tomorrow-night-eighties .ace_marker-layer .ace_active-line {background: #393939}.ace-tomorrow-night-eighties .ace_gutter-active-line {background-color: #393939}.ace-tomorrow-night-eighties .ace_marker-layer .ace_selected-word {border: 1px solid #515151}.ace-tomorrow-night-eighties .ace_invisible {color: #6A6A6A}.ace-tomorrow-night-eighties .ace_keyword,.ace-tomorrow-night-eighties .ace_meta,.ace-tomorrow-night-eighties .ace_storage,.ace-tomorrow-night-eighties .ace_storage.ace_type,.ace-tomorrow-night-eighties .ace_support.ace_type {color: #CC99CC}.ace-tomorrow-night-eighties .ace_keyword.ace_operator {color: #66CCCC}.ace-tomorrow-night-eighties .ace_constant.ace_character,.ace-tomorrow-night-eighties .ace_constant.ace_language,.ace-tomorrow-night-eighties .ace_constant.ace_numeric,.ace-tomorrow-night-eighties .ace_keyword.ace_other.ace_unit,.ace-tomorrow-night-eighties .ace_support.ace_constant,.ace-tomorrow-night-eighties .ace_variable.ace_parameter {color: #F99157}.ace-tomorrow-night-eighties .ace_invalid {color: #CDCDCD;background-color: #F2777A}.ace-tomorrow-night-eighties .ace_invalid.ace_deprecated {color: #CDCDCD;background-color: #CC99CC}.ace-tomorrow-night-eighties .ace_fold {background-color: #6699CC;border-color: #CCCCCC}.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_function,.ace-tomorrow-night-eighties .ace_support.ace_function,.ace-tomorrow-night-eighties .ace_variable {color: #6699CC}.ace-tomorrow-night-eighties .ace_support.ace_class,.ace-tomorrow-night-eighties .ace_support.ace_type {color: #FFCC66}.ace-tomorrow-night-eighties .ace_heading,.ace-tomorrow-night-eighties .ace_markup.ace_heading,.ace-tomorrow-night-eighties .ace_string {color: #99CC99}.ace-tomorrow-night-eighties .ace_comment {color: #999999}.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_tag,.ace-tomorrow-night-eighties .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow-night-eighties .ace_meta.ace_tag,.ace-tomorrow-night-eighties .ace_variable {color: #F2777A}.ace-tomorrow-night-eighties .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ09NrYAgMjP4PAAtGAwchHMyAAAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue