diff --git a/code/web/app/app_achievements/favicon.png b/code/web/app/app_achievements/favicon.png
new file mode 100644
index 000000000..0e26ec6e2
Binary files /dev/null and b/code/web/app/app_achievements/favicon.png differ
diff --git a/code/web/app/app_achievements/include/ach_render_common.php b/code/web/app/app_achievements/include/ach_render_common.php
new file mode 100644
index 000000000..ae7b75035
--- /dev/null
+++ b/code/web/app/app_achievements/include/ach_render_common.php
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/code/web/app/app_achievements/include/ach_render_ig.php b/code/web/app/app_achievements/include/ach_render_ig.php
new file mode 100644
index 000000000..36f0fdbf6
--- /dev/null
+++ b/code/web/app/app_achievements/include/ach_render_ig.php
@@ -0,0 +1,21 @@
+
+
+ |
+
+ ";
+ }
+?>
\ No newline at end of file
diff --git a/code/web/app/app_achievements/include/ach_render_web.php b/code/web/app/app_achievements/include/ach_render_web.php
new file mode 100644
index 000000000..e05637ac2
--- /dev/null
+++ b/code/web/app/app_achievements/include/ach_render_web.php
@@ -0,0 +1,93 @@
+
+
+ |
+ |
+ |
+
+
+ |
+
+
+
+ |
+ '.$content.' |
+
+ 50
+ |
+
+
+ 10 | | Equip a full set of at least quality 50 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 100 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 150 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 200 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 250 jewels | 03.01.2012 |
|
+
+
+ |
+ |
+
+
+ |
+ |
+ |
+
+
';
+ }
+
+ function ach_render_box_pending($name,$content) {
+ return '
+
+ |
+ |
+ |
+
+
+ |
+
+
+
+ |
+ '.$name.' |
+
+ 50
+ |
+
+
+ 10 | | Equip a full set of at least quality 50 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 100 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 150 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 200 jewels | 03.01.2012 | 10 | | Equip a full set of at least quality 250 jewels | 03.01.2012 |
|
+
+
+ |
+ |
+
+
+ |
+ |
+ |
+
+
';
+ }
+
+ function ach_render_obj_list($list) {
+ //group
+ //columnize
+ //draw
+ }
+
+ function ach_render_obj_meta($obj) {
+
+ }
+
+ function ach_render_obj_simple($obj) {
+ return $obj->getName();
+ }
+
+ function ach_render_obj_value($obj) {
+
+ }
+
+ function ach_render_tiebar($cult = "neutral", $civ = "neutral") {
+
+ }
+?>
\ No newline at end of file
diff --git a/code/web/app/app_achievements/index.php b/code/web/app/app_achievements/index.php
new file mode 100644
index 000000000..04503ac0b
--- /dev/null
+++ b/code/web/app/app_achievements/index.php
@@ -0,0 +1,49 @@
+setDbDefs('test', array('id' => SQL_DEF_INT, 'num_access' => SQL_DEF_INT));
+
+$num_access = $db->querySingleAssoc('test', array('id' => $user['id']));
+if ($num_access)
+ $db->update('test', array('num_access' => ++$num_access['num_access']), array('id' => $user['id']));
+else
+ $db->insert('test', array('num_access' => $num_access['num_access']=1, 'id' => $user['id']));
+
+// Content
+$c = _t('access', $num_access['num_access']).'
';*/
+
+$c = "
+
+ awesome menu |
+ ";
+
+for($i=0;$i<15;$i++) {
+ $c .= ach_render_box_done("Bejeweled");
+}
+
+$c .= " |
+
+
";
+
+echo ryzom_app_render("achievements", $c, $user['ig']);
+
+?>
diff --git a/code/web/app/app_achievements/lang.php b/code/web/app/app_achievements/lang.php
new file mode 100644
index 000000000..0a877c548
--- /dev/null
+++ b/code/web/app/app_achievements/lang.php
@@ -0,0 +1,15 @@
+
+ array (
+ 'en' => 'User access this page %s times',
+ 'fr' => 'L\'utilisateur a accede a cette page %s fois',
+ 'de' => '',
+ 'ru' => '',
+ ),
+);
+if(isset($ryzom_texts))
+ $ryzom_texts = array_merge ($__texts, $ryzom_texts);
+else
+ $ryzom_texts = $__texts;
+?>
\ No newline at end of file
diff --git a/code/web/app/app_achievements/pic/ach_news.png b/code/web/app/app_achievements/pic/ach_news.png
new file mode 100644
index 000000000..2c8497fa4
Binary files /dev/null and b/code/web/app/app_achievements/pic/ach_news.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_b.png b/code/web/app/app_achievements/pic/bar_done_b.png
new file mode 100644
index 000000000..955d64955
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_b.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_bg.png b/code/web/app/app_achievements/pic/bar_done_bg.png
new file mode 100644
index 000000000..896894dfd
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_bg.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_bl.png b/code/web/app/app_achievements/pic/bar_done_bl.png
new file mode 100644
index 000000000..fe5111c09
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_bl.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_br.png b/code/web/app/app_achievements/pic/bar_done_br.png
new file mode 100644
index 000000000..33a2cda6f
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_br.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_l.png b/code/web/app/app_achievements/pic/bar_done_l.png
new file mode 100644
index 000000000..8eb5821ef
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_l.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_r.png b/code/web/app/app_achievements/pic/bar_done_r.png
new file mode 100644
index 000000000..4f654862c
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_r.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_u.png b/code/web/app/app_achievements/pic/bar_done_u.png
new file mode 100644
index 000000000..ca2cfd9a2
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_u.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_ul.png b/code/web/app/app_achievements/pic/bar_done_ul.png
new file mode 100644
index 000000000..05e179979
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_ul.png differ
diff --git a/code/web/app/app_achievements/pic/bar_done_ur.png b/code/web/app/app_achievements/pic/bar_done_ur.png
new file mode 100644
index 000000000..694428c86
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_done_ur.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_b.png b/code/web/app/app_achievements/pic/bar_pending_b.png
new file mode 100644
index 000000000..70d847d32
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_b.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_bl.png b/code/web/app/app_achievements/pic/bar_pending_bl.png
new file mode 100644
index 000000000..178a37c2a
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_bl.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_br.png b/code/web/app/app_achievements/pic/bar_pending_br.png
new file mode 100644
index 000000000..1fea3d2a9
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_br.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_l.png b/code/web/app/app_achievements/pic/bar_pending_l.png
new file mode 100644
index 000000000..790c9b0c0
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_l.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_r.png b/code/web/app/app_achievements/pic/bar_pending_r.png
new file mode 100644
index 000000000..57631ef2f
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_r.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_u.png b/code/web/app/app_achievements/pic/bar_pending_u.png
new file mode 100644
index 000000000..33c487fa9
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_u.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_ul.png b/code/web/app/app_achievements/pic/bar_pending_ul.png
new file mode 100644
index 000000000..b417e8cf5
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_ul.png differ
diff --git a/code/web/app/app_achievements/pic/bar_pending_ur.png b/code/web/app/app_achievements/pic/bar_pending_ur.png
new file mode 100644
index 000000000..9ea44bce8
Binary files /dev/null and b/code/web/app/app_achievements/pic/bar_pending_ur.png differ
diff --git a/code/web/app/app_achievements/pic/yubo_done.png b/code/web/app/app_achievements/pic/yubo_done.png
new file mode 100644
index 000000000..ff47009c9
Binary files /dev/null and b/code/web/app/app_achievements/pic/yubo_done.png differ
diff --git a/code/web/app/app_achievements/pic/yubo_pending.png b/code/web/app/app_achievements/pic/yubo_pending.png
new file mode 100644
index 000000000..3cbcb656e
Binary files /dev/null and b/code/web/app/app_achievements/pic/yubo_pending.png differ