Just seeing if this is possible and if so hoping for some direction, I'm still very new to php.
I'd like to use the user's session data turn on or off elements in a page. I think I need to create a php file that is storing this info, that way I can modify the website page elements user permissions but just adding or subtracting.
Something like:
user1 is equal access to: section 1,2,4,5
user2 is equal access to: section 3,5
user3 is equal access to: section 1,2,3,4,5,6
The section access (or how ever i would call this element) would be displaying only parts with those numbers assigned to the divs in the html layout of the page defined by user1, user2, or user3. Essentially granting access to portions of a page depending on the user's id permissions.
.deptTile {
height: 100px;
background-color: gainsboro;
padding: 12px;
border-radius: 2px;
position: relitive;
width: 420px;
margin: 15px;
}
.deptTile:hover {
background-color: #99E299;
cursor: pointer !important;
}
@media (min-width: 1200px) .container {
width:1170px;
}
@media (min-width: 1200px) .col-lg-4 {
width:33.33333333%;
}
.row {
margin-right: -15px;
margin-left: -15px;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff;
}
@media (min-width: 1200px) .col-lg-4 {
width:33.33333333%;
}
.media,
.media-body {
overflow: hidden;
zoom: 1;
}
@media (min-width: 1200px) .container {
width:1170px;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff;
}
<div class="container" style="top: 150px; position: relative;">
<div class="row" style="padding-bottom: 100px;">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6" onMouseOver="">
<div class="media-object-default">
<div class="media deptTile" style="" onClick="">
<div class="media-left" style="padding: 5px; margin: 5px; float: left;">
<a href="">
<img src="" alt="placeholder image" class="media-object img-responsive">
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Sales Dept.</h4>
Click to see all the marketing materials. Product Image Database soon to come.</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6">
<div class="media deptTile" style="" onClick="">
<div class="media-left" style="padding: 5px; margin: 5px; float: left;">
<a href="">
<img src="" alt="placeholder image" class="media-object img-responsive">
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Marketing Dept.</h4>
Click to see all the marketing materials & marketing reports.</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 hidden-sm hidden-xs">
<div class="media deptTile" style="" onClick="">
<div class="media-left" style="padding: 5px; margin: 5px; float: left;">
<a href="">
<img src="" alt="placeholder image" class="media-object img-responsive">
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Admin</h4>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-lg-12"></div>
</div>
</div>
once the user has logged in the session is created and i would like to use the session id to allow or disallow access to only one of the buttons, 2 or all three depending on the user's id associated with the logged in profile user id.
I'm so new to this I just saw that I can just type in html natively
ok, so I'm very new to php, just started a couple days ago memorizing the language for personal application, and now trying for my office.
I'm an art director not a backend designer, but I'm giving it all can
Really any direction at all would be helpful