App-Cinema

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

		- sysadmin can edit all users' roles 
		- every account can edit its own roles
		- user can send email to ask for upgrading to vip
		- sysadmin can only upgrade account to vipuser but can't edit other info
		- fixed bug: delete user also delete its 'has many' data
		- admin can add and delete movie created by yourself
		- everyone can only search his/her own event except sysadmin
		- keep search conditions after the result displays
1.18
		- sysadmin can activate/deactivate user account instead of deleting it
		- change font-family to Sans
		
		

root/lib/config/col  view on Meta::CPAN

      page    = site.rgb.white
      text    = site.rgb.black
      head    = site.rgb.red
      line    = site.rgb.orange
      message = site.rgb.green
      error   = site.rgb.red
      link    = site.rgb.orange
      border  = site.rgb.pink      
   };
   
   site.font = {
   	  family  = "sans-serif,Arial"  
   	  #family  = "Arial"
   }
%]

root/lib/site/header  view on Meta::CPAN

<!-- BEGIN site/header -->

<table width="100%" cellpadding="0" cellspacing="0">
	<tr><td>
			<h1 class="title">[% template.title or site.title %]</h1>
		</td>
		<td align="right">
			[% IF !Catalyst.user_exists %]
			<a href="[% Catalyst.uri_for('/user/captcha') %]">Log In</a>
			[% ELSE %]
			<font color="white">Welcome, [% Catalyst.user.obj.username %]</font> | 
			<A href="[% Catalyst.uri_for('/user/logout') %]">Log out</a>
			[% END %]			
		</td>
	</tr>
</table>
<!-- END site/header -->

root/src/menu/home.tt2  view on Meta::CPAN

[% META title = "JandC.CO.CC" %]
<div id="about">
<p><b>What is</b>
</p>
<p>
Welcome to JandC.CO.CC. This website is designed to demo how to use 
<span style="font-weight: bold;">Catalyst</span> and <span style="font-weight: bold;">
Moose</span> to build a 
secured web application with less SQL, HTML, and JavaScript but more 
flexibility and efficiency. <br><br>You can start from 
<a href="[% Catalyst.uri_for('/menu/howto') %]">
	How-To</a> 
</p>
<b>Features</b>
<ul>
<table>
<tbody>

root/src/menu/howto.tt2  view on Meta::CPAN

<li><b>sysadmin:</b></li>
<ul>
<li>can upgrade account to vipuser but can't edit other info. 
=&gt; add event =&gt; send email</li>
<li>can search user by first_name last_name email_address username</li>
<li>can activate/deactivate user account&nbsp;&nbsp; &nbsp;=&gt; add event</li>
<li>can delete item&nbsp; =&gt; add event</li>
<li>can add new log (MyLog)</li>
</ul>
</ul>
<!--<font color=blue>Blue color means "under construction"</font>-->
</div>

root/src/ttsite.css  view on Meta::CPAN


html {
    height: 100%;
}

body { 
    background-color: [% site.col.page %];
    color: [% site.col.text %];
    font-family: [% site.font.family %];
    /*font-size: 12px;*/
    margin: 0px;
    padding: 0px;
}

a {
	color: [% site.col.link %];
	text-decoration: none;
}

a:hover {

root/src/ttsite.css  view on Meta::CPAN

    padding: 4px;
    margin: 0px;
    color: #FFFFFF;
}

.message {
    color: [% site.col.message %];
}

#search select {
	font-family: [% site.font.family %];
}

.error {
    color: [% site.col.error %];
}

.date {
    color: red;
}

root/src/ttsite.css  view on Meta::CPAN

#menu li {
      float: left;
}

#menu a {
      padding: 0 10px;
      background: none;
      text-transform: uppercase;
      text-decoration: none;      
      color: [% site.col.link %];
      font-weight:bold;
}

#menu a:hover, #menu .current_page_item a {
      color: #FFFFFF;
}

#menu a:hover {
      text-decoration: underline;
}

#about b {
	color : [% site.col.head %];	
}

#event_object {
	color : [% site.col.head %];
	font-weight:bold;
}

.fb_textarea, fb_input, fb_select, fb_radio {
	font-family: [% site.font.family %];
}

.fb_required {
    font-weight: bold;
}

.fb_submit {
	padding-top: 1em;
    text-align: left;
}

.fb_invalid {
    color: #c00;
    font-weight: bold;
}

.fb_error {
    color: #c00;
    font-style: italic;
}

.fb_label {
    text-align: right;
    padding-right: 1em;
}

.fb_comment {
    font-size: 8pt;
    font-style: italic;
}




( run in 2.541 seconds using v1.01-cache-2.11-cpan-ceb78f64989 )