My favorites
▼
|
Sign in
nyromodal
nyroModal - jQuery Modal Plugin
Project Home
Downloads
Issues
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
42
attachment: app_links_edit.php
(3.9 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?
/***************************************************************************
* Developed by : Nicolas KAPFER *
* E-Mail : nkapfer@experience-worldwide.com *
****************************************************************************
* Filename : links_edit.inc *
* Version : 1.0 *
* Last updated : 22.10.2008 *
* Description : Application 'Links', Edit *
* (C)opyright by : Radiate Experience GmbH (C)2008 *
* All Rights Reserved. *
****************************************************************************/
// Including database functions and connections
include("../../../../../includes/env_database_auratis_intranet_dev2.inc");
include("../../basicfunctions.php");
include("_apps.inc");
// Generating or retrieving Session ID
session_start();
if ($_SESSION['reg_user_id'] != '')
{
if(!empty($_POST['action']))
{
switch($_POST['action'])
{
case "edit":
?>
Lien édité!
<?php
break;
case "delete":
break;
}
}else{
$links_get_link = links_get_link($_GET['id']);
$links_get_categories = links_get_categories($_SESSION['reg_user_division_id']);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../../css/modals.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/nyroModal.Full.css"/>
<script type="text/javascript" src="../../js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="../../js/jquery.nyroModal-1.2.8.min.js"></script>
<script type="text/javascript" src="../../js/functions.js"></script>
</head>
<body>
<div class="modal_edit">
<div class="specheader">
<div class="header_title">
<span>Link editieren</span><br/>
<?php echo $links_get_link[0]['vc_name_links'];?>
</div>
</div>
<div class="maindetails">
<form class="nyroModal" method="post" action="includes/divisions/apps/app_links_edit.php">
<input type="hidden" id="id" name="id" value="<?php echo $links_get_link[0]['pk_links'];?>"/>
<input type="hidden" id="action" name="action" value="edit"/>
<table class="form_edit">
<tr>
<th>Name</th>
<td><input class="input_edit" type="text" id="name" name="name" value="<?php echo $links_get_link[0]['vc_name_links'];?>"/></td>
</tr>
<tr>
<th>URL</th>
<td><input class="input_edit" type="text" id="url" name="url" value="<?php echo $links_get_link[0]['vc_url_links'];?>"/></td>
</tr>
<tr>
<th>Beschreibung</th>
<td><textarea class="input_edit" id="description" name="description"><?php echo $links_get_link[0]['tx_description_links'];?></textarea></td>
</tr>
<tr>
<th>Kategorie</th>
<td>
<select class="input_edit" id="category" name="category">
<?php
for($i=0;$i<count($links_get_categories);$i++)
{
if($links_get_categories[$i]['pk_linkscategory'] == $links_get_link[0]['fk_linkscategory_links'])
{
?>
<option selected value="<?php echo $links_get_categories[$i]['pk_linkscategory'];?>"><?php echo $links_get_categories[$i]['vc_name_linkscategory'];?></option>
<?php
}else{
?>
<option value="<?php echo $links_get_categories[$i]['pk_linkscategory'];?>"><?php echo $links_get_categories[$i]['vc_name_linkscategory'];?></option>
<?php
}
}
?>
</select>
</td>
</tr>
<tr>
<th>Erstellt am</th>
<td><?php echo $links_get_link[0]['dt_creation_links'];?></td>
</tr>
</table>
<div class="spacer50"> </div>
<input type="submit" value="Speichern"/> <button class="nyroModalClose">Abbrechen</button>
</form>
</div>
</div>
</body>
</html>
<?php
}
}else{
?>
<html>
<head>
</head>
<body>
Sie sind nicht eingeloggt!
</body>
</html>
<?php
}
?>
Powered by
Google Project Hosting