---
# System prepended metadata

title: How does activities page build up
tags: [where, development, activities]

---

# How does activities page build up

###### tags: `where` `development` `activities`

## Summary
- Folder structure
    >Example of activities, and Doing Tab
    
    - Head to **/activities/doing/index.php**
    - Head to **/components/layouts/two_column_layout/display.php**
    - Head to **/components/layouts/two_column_layout/body.php** *(this is for the main body, for the tabs on the top, it might be in standardpage/start.php)
    

- Layout: 2 columns layout
- Main content file: 
    - /components/layouts/pieces/columns/two_left.php
    - /components/layouts/pieces/columns/two_right.php

## Sections

### Prompt Questions
![screenshot - prompt questions on the page](https://i.imgur.com/x736ZZb.png)


### Input text box
It's a mix of files
- components/discussion/pieces/top_of_form.php
- components/discussion/pieces/placeholder_creation.php
- components/discussion/pieces/reminders_reviews_and_charts_extra_buttons.php (**used sql can be found in this file**)

**:eyes: while the form will be submit to `components/discussion/submit.php` where sql take main action.**

In top_of_form file, it will start from this line:

``` php=174
echo "<textarea id='textarea_input'  name='textarea_input' ";
```

![](https://i.imgur.com/roXn4y5.png)
 



### Past discussion
 - components/discussion/pieces/view_past_discussion.php

![](https://i.imgur.com/CeS28tV.png)


### Regualer Activities
> Take the example unber Doing Tab
- components/items/lists/full_color_full_box.php

Two inputs on the top. The left is a drop-down selection. It will change the current display when change the seletion value.
```php=93
echo "<select name='list_to_view' class='login-submit'  style='float:left;width:100%;text-align-last: center;background-color:".$background_color.";".$color."'  onchange='this.form.submit()'>";
//... some commented notes ...
    
    
echo "<option value='active' 	".$active_selected."	>view".$active_ing." active</option>";
echo "<option value='deleted'	".$deleted_selected."	>view".$deleted_ing."  deleted</option>";					
echo "<option value='inactive'	".$inactive_selected."	>view".$inactive_ing."  ".$achieved_name."</option>";	
echo "</select>";
```

##### Unsure file
- /components/items/lists/pre_list_warnings.php




## Database specification

### items_central_index
> this database is found in *components/items/lists/fullcolorfullbox.php* and it is used to define the text of button (see screenshot below).
![button on acitivities doing page](https://i.imgur.com/uek3kwE.png)
Also, it is used to index the current diretory.
![](https://i.imgur.com/WVgXKkB.png)



| Column | found_in_database | primary_folder             | secondary_folder                                       | adding_new_code                                          | add_new_copy| Singular_string | Descriptive_category |
| ------------- |:-----------------:| ---------------------------------------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | --------------- | -------------------- |
| *Description* |        N/A        | allow system to check primary folder when query data | allow system to check secondary folder when query data | to categorise activities. i.e. doing, managing or planning ... ==It is actually as same as secondary_fold so might be consider as redundent code.== | Text shows on the button | N/A     | N/A |
|code in use||||components/items/add_submit.php</br>![](https://i.imgur.com/79GnD8D.png)




### Activities

| Column        | Item_id | user_id | status | status_to_completed_timestamp | deleted | category | sub_category                                     | mode                                                                                     | title | privacy | background_color | contrast_color | text_color  | degrees     | created_timestamp | last_updated_timestamp | next_review_timestamp | rank | numerical_zone | numerical_datapoint                                    |
| ------------- |:-------:| ------- | ------ | ----------------------------- | ------- | -------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------- | ----- | ------- | ---------------- | -------------- | ----------- | ----------- | ----------------- | ---------------------- | --------------------- | ---- | -------------- | ------------------------------------------------------ |
| *Description* |         |         |        |                               |         |          | used for issue categorisation and identification | for improvements // completed, planned, underway //for issues critical, important, other | title | privacy | for styling      | for styling    | for styling | for styling |                   |                        |                       |      |                | The number of hours users input for certain activities|
*For development*  |         |         |        |                               |         |          |        |   |      |  |  X   | X |X |X  |                   |                        |                       |      |                |                                                        |


