Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6bdfee0d
authored
2018-03-22 20:00:15 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
a7aefa9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
application/controllers/Tool.php
application/views/tool/edit.php
application/controllers/Tool.php
View file @
6bdfee0
...
...
@@ -15,6 +15,11 @@ class Tool extends CI_Controller {
}
public
function
edit
(
$id
)
{
$this
->
load
->
view
(
'tool/add'
);
$res
=
json_decode
(
file_get_contents
(
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'application/tool/webSite/'
.
$id
));
$data
=
$res
->
data
;
$arr
=
array
(
'data'
=>
$data
);
$this
->
load
->
view
(
'tool/edit'
,
$arr
);
}
}
...
...
application/views/tool/edit.php
View file @
6bdfee0
...
...
@@ -5,22 +5,23 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-body"
>
<form
action=
'application/tool/webSite'
method=
"post"
class=
"form form-horizontal"
id=
"web_add"
>
<input
type=
"hidden"
name=
"id"
value=
"
<?=
$data
->
id
?>
"
>
<div
class=
"row cl"
>
<label
class=
"form-label col-xs-4 col-sm-3"
>
网站名称
</label>
<div
class=
"formControls col-xs-3 col-sm-6"
>
<input
type=
"text"
class=
"input-text"
name=
"siteName"
>
<input
type=
"text"
class=
"input-text"
value=
"
<?=
$data
->
siteName
?>
"
name=
"siteName"
>
</div>
</div>
<div
class=
"row cl"
>
<label
class=
"form-label col-xs-4 col-sm-3"
>
网站地址
</label>
<div
class=
"formControls col-xs-3 col-sm-6"
>
<input
type=
"text"
class=
"input-text"
name=
"siteAddress"
>
<input
type=
"text"
class=
"input-text"
value=
"
<?=
$data
->
siteAddress
?>
"
name=
"siteAddress"
>
</div>
</div>
<div
class=
"row cl"
>
<label
class=
"form-label col-xs-4 col-sm-3"
>
备注
</label>
<div
class=
"formControls col-xs-3 col-sm-6"
>
<textarea
name=
"remark"
class=
"textarea"
></textarea>
<textarea
name=
"remark"
class=
"textarea"
>
<
?=
$data
->
remark
?>
<
/textarea>
</div>
</div>
<div
class=
"row cl"
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment