-
Notifications
You must be signed in to change notification settings - Fork 1
/
textspansion.php
69 lines (49 loc) · 1.27 KB
/
textspansion.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
<? include('include/header.php'); ?>
<script type="text/javascript">
$(function() {
$('#projects_tab').activate();
id = $('#project_id').attr('value');
dataString = 'action=getProject&id='+id;
$.ajax({
type: 'post',
dataType: 'json',
url: 'data/project.php',
data: dataString,
success: function(proj) {
$('#proj_name').text(proj.name);
$('#proj_purpose').html(proj.purpose);
$('#proj_blurb').html(proj.blurb);
$('#proj_details').html(proj.details);
$('#proj_img').attr('src', proj.img_path).show();
}, // end success
error: function(xhr, textStatus, errorThrown){
alert('request failed' +textStatus + '->' + errorThrown);
}
}); // end ajax
});
</script>
<style>
h4 {
margin: 20px 0 0 0;
color: #57527E;
}
#content img {
float: right;
padding: 0 20px 0 0;
}
#container {
min-height: 550px;
}
</style>
<div id="content">
<input id="project_id" type="hidden" value="<?= 1 ?>"/>
<h3>Textpansion</h3>
<img id='proj_img' height="90" style="display: none" />
<h4>Purpose</h4>
<div id="proj_purpose"></div>
<h4>How it Works</h4>
<div id="proj_blurb"></div>
<h4>Details</h4>
<div id="proj_details"></div>
</div><!-- end #content -->
<? include('include/footer.php'); ?>