-
Notifications
You must be signed in to change notification settings - Fork 0
/
createtechnology.php
155 lines (138 loc) · 6.38 KB
/
createtechnology.php
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
session_start();
include_once 'utils.php';
$db_conn = real_db_connect($_db_server, $_db_username, $_db_password, $_db_name);
real_check_valid_session($db_conn, $_SESSION['UID'], session_id(), $_SERVER['REMOTE_ADDR']);
$_POST['page-title'] = "Create New Technology Profile";
$_POST['page-link1'] = "<link rel='stylesheet' type='text/css' href='styles/index.css' />";
$_POST['page-link2'] = "<link href='styles/style1.css' rel='stylesheet' type='text/css' />";
$_POST['page-link3'] = "<link href='styles/list.css' rel='stylesheet' type='text/css' />";
$_POST['page-include-page-top2'] = "true";
include_once 'includes/page-top.php';
include_once 'includes/page-top2.php';
?>
<script type="text/javascript">
<!--
var timer;
startList = function()
{
if (document.all&&document.getElementById)
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
this.className+=" over";
}
node.onmouseout=function()
{
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=function()
{
startList();
}
-->
</script>
<table width="100%" border="0">
<tr><td colspan="2"> </td></tr>
<tr><!-- Main Content -->
<td colspan="2">
<!-- InstanceBeginEditable name="content" -->
<script type="text/javascript" language="javascript">
function validatefields()
{
if ( document.frmNewProfile.tech_general_info_title == "" )
{
alert( "Please enter a title for the Technology before proceeding." );
document.frmNewProfile.tech_general_info_title.focus();
return false;
}
return true;
}
</script>
<form action="createnew.php" method="post" name="frmNewProfile" enctype='multipart/form-data' onSubmit='return validatefields()'>
<?php
print( "<input name='profiletype' type='hidden' value='technology' />");
$readonly = "readonly=true";
print( "<table width='100%' cellspacing='1' cellpadding='1'>");
if (real_check_user_groupid($db_conn, "tech_admin") == true ||
real_check_user_groupid($db_conn, "admin") == true) {
print( "<tr>");
print( "<td> <span class='form_elements_text'><B>Owner Name</B></span></td>");
print( "<td> " .
"<input class='form_elements_text' type='text' name='tech_general_info_login_name' " .
"size='10' maxlength='15' value='Tech Admin' $readonly>" .
"<input class='form_elements_text' type='hidden' name='tech_general_info_login_id' " .
"size='10' maxlength='15' value='0000000007' $readonly> </td>");
print( "</tr>");
}
print( "<tr>");
print( "<td> <span class='form_elements_text'><B>Title</B></span></td>");
print( "<td> <input class='form_elements_text' type='text' " .
"name='tech_general_info_title' size='100' maxlength='255'> </td>");
print( "</tr>");
print( "<tr>");
print( "<td> <span class='form_elements_text'><B>Abstract</B></span></td>");
print( "<td> <textarea name='abstract' cols='100' rows='10' class='form_elements_text'>" . "</textarea>" .
"</td>");
print( "</tr>");
print( "<tr><td colspan='2'><hr></td></tr>");
print( "<tr><td colspan='2'>
<input name='Submit' type='submit' class='form_elements' value='Create' style='margin-left:200px'/>
<input name='cancel' type='button' class='form_elements' value='Cancel' onclick='location.href=\"researchspace.php?#createnew\"'/>
</td></tr>");
?>
</form>
<script type='text/javascript'>
function ChangeRank( rank, hid_list )
{
hide_popup( "ppl_general_info_rank" );
document.frmNewProfile.ppl_general_info_designation.value=rank;
document.frmNewProfile.ppl_general_info_rank_changed.value='1';
document.frmNewProfile.ppl_general_info_hid_list.value=hid_list;
}
function CancelChangeRank( )
{
hide_popup( "ppl_general_info_rank" );
}
</script>
<div id='ppl_general_info_rank_box' style='display:none;z-index:100' onSelectStart='return false'>
<div id='ppl_general_info_rank_header' >
<span id='ppl_general_info_rank_caption' >
Edit Rank
</span>
<span id='ppl_general_info_rank_close' >
<img src='images/buttons/close.gif' onClick='hide_popup("ppl_general_info_rank")'>
</span>
</div>
<div id='ppl_general_info_rank_content' >
<iframe id='ppl_general_info_rank_frame'></iframe>
</div>
</div>
<!-- InstanceEndEditable -->
</td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr><td colspan="2"> </td></tr>
<tr><td colspan="2"> </td></tr>
<tr><!-- Page footer -->
<td colspan="2" align="center">
<p align="center"><img src="images/line.jpg" alt="" width="700" height="1"/></p>
<p>
<a href="http://www.uta.edu/collaborate" target="_blank" class="rsp">powering - The Partnership</a><br />
© 2010 <a href="http://www.txstate.edu/" target="www.txstate.edu">Texas State University-San Marcos</a> | Questions or Comments about this site? | Email: <a href="feedback.php">webmaster</a> <br /><br />
</p>
</td>
</tr>
</table>
</body>
</html>