HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
_singleContent.php
Go to the documentation of this file.
1
<?php
2
echo CHtml::ajaxButton(
'Raw content'
,
'/UrlsView/content'
, array(
3
'type'
=>
'POST'
,
4
'data'
=>
'siteId='
.$p[
"siteId"
].
'&url='
.$p[
"url"
].
'&urlMd5='
.$p[
"urlMd5"
].
'&t=0'
,
5
'update'
=>
'#editor'
,
6
'success'
=>
"function(data) {
7
$('.loader').remove();
8
$('#editor').empty();
9
$('#editor').html(data);
10
}"
,
11
"error"
=>
"
12
function(xhr){
13
$('#editor').empty();
14
$('#editor').html(xhr.responseText);
15
}
16
"
17
),
18
array(
19
'id'
=>
'loadContentR'
,
20
'class'
=>
'btn btn-default'
21
)
22
);
23
24
echo CHtml::ajaxButton(
'Processed content'
,
'/UrlsView/content'
, array(
25
'type'
=>
'POST'
,
26
'data'
=>
'siteId='
.$p[
"siteId"
].
'&url='
.$p[
"url"
].
'&urlMd5='
.$p[
"urlMd5"
].
'&t=1'
,
27
'update'
=>
'#ajaxContent'
,
28
'success'
=>
"function(data) {
29
var opt = {
30
change: function(data) { },
31
propertyclick: function(path) { /* called when a property is clicked with the JS path to that property */ }
32
};
33
$('#editor').empty();
34
opt.propertyElement = '<textarea>';
35
opt.valueElement = '<textarea>';
36
$('#editor').jsonEditor(JSON.parse(data), opt);
37
$('.loader').remove();
38
}"
,
39
"error"
=>
"
40
function(xhr){
41
$('#editor').empty();
42
$('#editor').html(xhr.responseText);
43
}
44
"
45
),
46
array(
47
'id'
=>
'loadContentP'
,
48
'class'
=>
'btn btn-default'
49
)
50
);
51
?>
52
</script>
53
<div
id
=
"flexiJson"
>
54
<link rel=
"stylesheet"
href=
"/css/jsoneditor.css"
/>
55
<script src=
"/js/jquery.jsoneditor.js"
></script>
56
<div
id
=
"editor"
class
=
"json-editor"
></div>
57
</div>
app
protected
views
urlsView
_singleContent.php
Generated on Tue Jun 30 2015 20:12:38 for HCE Project DC service web UI by
1.8.1.2